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.001777/0.001777, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001881/0.001882, allocations: 196.8 kB / 16.14 MB, free: 6.707 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.688/1.688, allocations: 205.1 MB / 222 MB, free: 5 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.001115/0.001115, allocations: 43.94 kB / 278 MB, free: 13.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3154/0.3165, allocations: 46.63 MB / 324.7 MB, free: 1.828 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003312/0.3199, allocations: 1.743 MB / 326.4 MB, free: 464 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008345/0.3208, allocations: 285.8 kB / 326.7 MB, free: 232 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001091/0.3209, allocations: 8.125 kB / 326.7 MB, free: 228 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001385/0.321, allocations: 14.78 kB / 326.7 MB, free: 216 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 5.108e-05/0.3211, allocations: 17.16 kB / 326.7 MB, free: 200 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003465/0.3215, allocations: 95.38 kB / 326.8 MB, free: 124 kB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003133/0.3218, allocations: 254.2 kB / 327.1 MB, free: 15.97 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003118/0.3221, allocations: 181.2 kB / 327.2 MB, free: 15.86 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001061/0.3222, allocations: 82.98 kB / 327.3 MB, free: 15.8 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001482/0.3224, allocations: 95.97 kB / 327.4 MB, free: 15.73 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.587e-05/0.3224, allocations: 15.19 kB / 327.4 MB, free: 15.73 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.901e-05/0.3225, allocations: 29.95 kB / 327.5 MB, free: 15.72 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.368e-05/0.3226, allocations: 50.42 kB / 327.5 MB, free: 15.68 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.866e-05/0.3227, allocations: 96.09 kB / 327.6 MB, free: 15.61 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002822/0.323, allocations: 215 kB / 327.8 MB, free: 15.45 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.323, allocations: 0 / 327.8 MB, free: 15.45 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.323, allocations: 0 / 327.8 MB, free: 15.45 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.323, allocations: 4 kB / 327.8 MB, free: 15.44 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.0008506/0.3239, allocations: 497.5 kB / 328.3 MB, free: 14.96 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.287e-05/0.3239, allocations: 9.344 kB / 328.3 MB, free: 14.96 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.631e-05/0.324, allocations: 24.56 kB / 328.3 MB, free: 14.95 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002707/0.3243, allocations: 224.7 kB / 328.6 MB, free: 14.71 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.108e-05/0.3243, allocations: 24.94 kB / 328.6 MB, free: 14.7 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.465e-05/0.3244, allocations: 30.62 kB / 328.6 MB, free: 14.69 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005106/0.3249, allocations: 275.1 kB / 328.9 MB, free: 14.5 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.3249, allocations: 192 / 328.9 MB, free: 14.5 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.899e-05/0.325, allocations: 10.69 kB / 328.9 MB, free: 14.49 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.423e-05/0.325, allocations: 6.969 kB / 328.9 MB, free: 14.49 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003473/0.3253, allocations: 166.1 kB / 329.1 MB, free: 14.41 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001429/0.3268, allocations: 0.9726 MB / 330 MB, free: 13.51 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003838/0.3272, allocations: 157.1 kB / 330.2 MB, free: 13.42 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001568/0.3273, allocations: 73.14 kB / 330.3 MB, free: 13.38 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.028e-05/0.3274, allocations: 6.781 kB / 330.3 MB, free: 13.38 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003911/0.3278, allocations: 117.3 kB / 330.4 MB, free: 13.28 MB / 270.1 MB Notification: Performance of pre-optimization done (n=23): time 1.293e-06/0.3278, allocations: 0 / 330.4 MB, free: 13.28 MB / 270.1 MB Notification: Performance of matching and sorting (n=23): time 0.0005665/0.3284, allocations: 212.4 kB / 330.6 MB, free: 13.17 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.082e-05/0.3285, allocations: 59.84 kB / 330.6 MB, free: 13.11 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001735/0.3287, allocations: 153.9 kB / 330.8 MB, free: 12.97 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.912e-05/0.3287, allocations: 32.92 kB / 330.8 MB, free: 12.93 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001426/0.3288, allocations: 142.8 kB / 331 MB, free: 12.8 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.032e-05/0.3289, allocations: 64.84 kB / 331 MB, free: 12.75 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001343/0.3291, allocations: 84.44 kB / 331.1 MB, free: 12.69 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001801/0.3293, allocations: 325.7 kB / 331.4 MB, free: 12.36 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001491/0.3294, allocations: 62.72 kB / 331.5 MB, free: 12.34 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002678/0.3297, allocations: 143 kB / 331.6 MB, free: 12.21 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003306/0.33, allocations: 193 kB / 331.8 MB, free: 12.06 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.33, allocations: 0 / 331.8 MB, free: 12.06 MB / 270.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005029/0.3306, allocations: 248 kB / 332.1 MB, free: 11.93 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.886e-05/0.3306, allocations: 6 kB / 332.1 MB, free: 11.93 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.232e-05/0.3306, allocations: 2.031 kB / 332.1 MB, free: 11.93 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.936e-05/0.3306, allocations: 8.906 kB / 332.1 MB, free: 11.93 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000167/0.3308, allocations: 41.02 kB / 332.1 MB, free: 11.91 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.766e-05/0.3308, allocations: 4.344 kB / 332.1 MB, free: 11.91 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001196/0.331, allocations: 32.48 kB / 332.2 MB, free: 11.88 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.926e-05/0.331, allocations: 9.375 kB / 332.2 MB, free: 11.88 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.0001952/0.3312, allocations: 158.5 kB / 332.3 MB, free: 11.73 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.966e-05/0.3313, allocations: 13.81 kB / 332.3 MB, free: 11.73 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005532/0.3318, allocations: 192.5 kB / 332.5 MB, free: 11.61 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.295e-06/0.3318, allocations: 6.625 kB / 332.5 MB, free: 11.61 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/0.3319, allocations: 0 / 332.5 MB, free: 11.61 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.498e-05/0.3319, allocations: 5.234 kB / 332.5 MB, free: 11.61 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001087/0.333, allocations: 0.5897 MB / 333.1 MB, free: 11.1 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.333, allocations: 0 / 333.1 MB, free: 11.1 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000106/0.3331, allocations: 15.55 kB / 333.1 MB, free: 11.09 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.348e-06/0.3331, allocations: 5.031 kB / 333.1 MB, free: 11.09 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.39e-05/0.3332, allocations: 10.12 kB / 333.2 MB, free: 11.08 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.3332, allocations: 1.094 kB / 333.2 MB, free: 11.08 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.3332, allocations: 0 / 333.2 MB, free: 11.08 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004661/0.3337, allocations: 274.4 kB / 333.4 MB, free: 10.88 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.877e-05/0.3338, allocations: 93.27 kB / 333.5 MB, free: 10.78 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.953e-05/0.3338, allocations: 10.92 kB / 333.5 MB, free: 10.77 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001179/0.3339, allocations: 6.875 kB / 333.5 MB, free: 10.77 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001101/0.3341, allocations: 20.66 kB / 333.6 MB, free: 10.75 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.525e-05/0.3341, allocations: 17 kB / 333.6 MB, free: 10.74 MB / 270.1 MB Notification: Performance of sorting global known variables: time 9.461e-05/0.3342, allocations: 100.7 kB / 333.7 MB, free: 10.66 MB / 270.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3342, allocations: 0 / 333.7 MB, free: 10.66 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0005774/0.3348, allocations: 54.88 kB / 333.7 MB, free: 10.64 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.0002107/0.335, allocations: 120.9 kB / 333.8 MB, free: 10.53 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0004026/0.3354, allocations: 184.6 kB / 334 MB, free: 10.38 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.3354, allocations: 4.125 kB / 334 MB, free: 10.38 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001426/0.3356, allocations: 83.91 kB / 334.1 MB, free: 10.3 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003054/0.3359, allocations: 19.98 kB / 334.1 MB, free: 10.28 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009305/0.3368, allocations: 410.2 kB / 334.5 MB, free: 9.848 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004935/0.3374, allocations: 0.7443 MB / 335.3 MB, free: 9.078 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 9.31e-05/0.3375, allocations: 17.95 kB / 335.3 MB, free: 9.062 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.184e-05/0.3375, allocations: 23.42 kB / 335.3 MB, free: 9.039 MB / 270.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3375, allocations: 4 kB / 335.3 MB, free: 9.035 MB / 270.1 MB Notification: Performance of Templates: time 0.00528/0.3428, allocations: 1.716 MB / 337 MB, free: 7.32 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)