Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009395/0.00094, allocations: 89.97 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.009763/0.009763, allocations: 171.7 kB / 16.26 MB, free: 6.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.795/1.795, allocations: 205.4 MB / 222.5 MB, free: 5.555 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006471/0.0006472, allocations: 14.81 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3088/0.3095, allocations: 47.59 MB / 327 MB, free: 1.383 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002503/0.3121, allocations: 1.394 MB / 328.4 MB, free: 280 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007835/0.3129, allocations: 284.4 kB / 328.7 MB, free: 48 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001081/0.313, allocations: 3.562 kB / 328.7 MB, free: 48 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000137/0.3132, allocations: 19.64 kB / 328.7 MB, free: 32 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 6.519e-05/0.3132, allocations: 11.7 kB / 328.7 MB, free: 24 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005156/0.3138, allocations: 97.89 kB / 328.8 MB, free: 15.95 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004187/0.3142, allocations: 252 kB / 329.1 MB, free: 15.8 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003949/0.3146, allocations: 157.6 kB / 329.2 MB, free: 15.7 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001419/0.3148, allocations: 75.64 kB / 329.3 MB, free: 15.65 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001581/0.3149, allocations: 81.17 kB / 329.4 MB, free: 15.59 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.686e-05/0.315, allocations: 9.656 kB / 329.4 MB, free: 15.59 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.917e-05/0.3151, allocations: 13.66 kB / 329.4 MB, free: 15.59 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.544e-05/0.3152, allocations: 46.05 kB / 329.4 MB, free: 15.55 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001453/0.3153, allocations: 109 kB / 329.6 MB, free: 15.46 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003396/0.3157, allocations: 208.8 kB / 329.8 MB, free: 15.3 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3157, allocations: 0 / 329.8 MB, free: 15.3 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.3157, allocations: 0 / 329.8 MB, free: 15.3 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.3157, allocations: 0 / 329.8 MB, free: 15.3 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0007926/0.3165, allocations: 450.1 kB / 330.2 MB, free: 14.86 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.159e-05/0.3166, allocations: 9.156 kB / 330.2 MB, free: 14.86 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.999e-05/0.3167, allocations: 28.88 kB / 330.2 MB, free: 14.85 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003184/0.317, allocations: 236.5 kB / 330.5 MB, free: 14.6 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.655e-05/0.3171, allocations: 24.38 kB / 330.5 MB, free: 14.59 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.166e-05/0.3171, allocations: 26.88 kB / 330.5 MB, free: 14.58 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005248/0.3177, allocations: 278.6 kB / 330.8 MB, free: 14.38 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/0.3177, allocations: 5.031 kB / 330.8 MB, free: 14.38 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.459e-05/0.3177, allocations: 6.562 kB / 330.8 MB, free: 14.37 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.595e-05/0.3178, allocations: 6.562 kB / 330.8 MB, free: 14.37 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003133/0.3181, allocations: 166.3 kB / 331 MB, free: 14.29 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001308/0.3194, allocations: 0.9747 MB / 331.9 MB, free: 13.39 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000297/0.3197, allocations: 155.4 kB / 332.1 MB, free: 13.3 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001276/0.3198, allocations: 75.05 kB / 332.2 MB, free: 13.26 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.132e-05/0.3199, allocations: 1.125 kB / 332.2 MB, free: 13.26 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002573/0.3201, allocations: 118.5 kB / 332.3 MB, free: 13.17 MB / 270.1 MB Notification: Performance of pre-optimization done (n=23): time 2.184e-06/0.3201, allocations: 0 / 332.3 MB, free: 13.17 MB / 270.1 MB Notification: Performance of matching and sorting (n=23): time 0.0006126/0.3208, allocations: 213.3 kB / 332.5 MB, free: 13.06 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.6e-05/0.3208, allocations: 59.27 kB / 332.5 MB, free: 12.99 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001904/0.321, allocations: 156.3 kB / 332.7 MB, free: 12.85 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.261e-05/0.3211, allocations: 34.48 kB / 332.7 MB, free: 12.82 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001637/0.3213, allocations: 139.5 kB / 332.9 MB, free: 12.69 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.177e-05/0.3213, allocations: 67.61 kB / 332.9 MB, free: 12.63 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.154e-05/0.3215, allocations: 51.84 kB / 333 MB, free: 12.59 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.3216, allocations: 330.2 kB / 333.3 MB, free: 12.26 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001554/0.3218, allocations: 62.5 kB / 333.4 MB, free: 12.23 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002118/0.322, allocations: 143.3 kB / 333.5 MB, free: 12.11 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003347/0.3223, allocations: 196.7 kB / 333.7 MB, free: 11.95 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.773e-06/0.3223, allocations: 0 / 333.7 MB, free: 11.95 MB / 270.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005599/0.3229, allocations: 251.5 kB / 333.9 MB, free: 11.82 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.789e-05/0.323, allocations: 6.438 kB / 334 MB, free: 11.82 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.522e-05/0.323, allocations: 6.547 kB / 334 MB, free: 11.81 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.823e-05/0.323, allocations: 3 kB / 334 MB, free: 11.81 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002002/0.3232, allocations: 34.64 kB / 334 MB, free: 11.8 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.06e-05/0.3233, allocations: 8.844 kB / 334 MB, free: 11.8 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001687/0.3234, allocations: 33.17 kB / 334 MB, free: 11.77 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.196e-05/0.3235, allocations: 14.28 kB / 334.1 MB, free: 11.77 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.condition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002652/0.3238, allocations: 162.2 kB / 334.2 MB, free: 11.62 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.438e-05/0.3238, allocations: 9.688 kB / 334.2 MB, free: 11.61 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004814/0.3243, allocations: 187.5 kB / 334.4 MB, free: 11.5 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-05/0.3243, allocations: 10.91 kB / 334.4 MB, free: 11.5 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.143e-05/0.3243, allocations: 4 kB / 334.4 MB, free: 11.49 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.3244, allocations: 1.344 kB / 334.4 MB, free: 11.49 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001129/0.3255, allocations: 0.5966 MB / 335 MB, free: 10.95 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.3255, allocations: 0 / 335 MB, free: 10.95 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.368e-05/0.3256, allocations: 23.86 kB / 335 MB, free: 10.93 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.14e-06/0.3256, allocations: 0 / 335 MB, free: 10.93 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.124e-05/0.3256, allocations: 8 kB / 335 MB, free: 10.92 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.3257, allocations: 4 kB / 335.1 MB, free: 10.92 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.3257, allocations: 0 / 335.1 MB, free: 10.92 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004059/0.3261, allocations: 271.2 kB / 335.3 MB, free: 10.64 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.517e-05/0.3262, allocations: 96.8 kB / 335.4 MB, free: 10.52 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.226e-05/0.3262, allocations: 4 kB / 335.4 MB, free: 10.52 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.793e-05/0.3263, allocations: 15.98 kB / 335.4 MB, free: 10.5 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001043/0.3264, allocations: 23.91 kB / 335.5 MB, free: 10.48 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.624e-05/0.3265, allocations: 8 kB / 335.5 MB, free: 10.47 MB / 270.1 MB Notification: Performance of sorting global known variables: time 9.109e-05/0.3266, allocations: 95.27 kB / 335.6 MB, free: 10.38 MB / 270.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3266, allocations: 0 / 335.6 MB, free: 10.38 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003964/0.327, allocations: 55.84 kB / 335.6 MB, free: 10.32 MB / 270.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (step.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002583/0.3272, allocations: 115.2 kB / 335.7 MB, free: 10.2 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003973/0.3276, allocations: 184 kB / 335.9 MB, free: 10.02 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.3277, allocations: 4.188 kB / 335.9 MB, free: 10.02 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001464/0.3278, allocations: 83.84 kB / 336 MB, free: 9.938 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000352/0.3282, allocations: 19.94 kB / 336 MB, free: 9.918 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008578/0.329, allocations: 411.8 kB / 336.4 MB, free: 9.488 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005172/0.3296, allocations: 0.7365 MB / 337.1 MB, free: 8.727 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 9.149e-05/0.3297, allocations: 25.92 kB / 337.2 MB, free: 8.703 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.155e-05/0.3297, allocations: 19.44 kB / 337.2 MB, free: 8.684 MB / 270.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3298, allocations: 4 kB / 337.2 MB, free: 8.68 MB / 270.1 MB Notification: Performance of Templates: time 0.00559/0.3353, allocations: 1.705 MB / 338.9 MB, free: 6.977 MB / 270.1 MB make -j1 -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1)