Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001194/0.001194, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002027/0.002027, allocations: 191.6 kB / 16.13 MB, free: 6.668 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.761/1.761, allocations: 205.1 MB / 222 MB, free: 4.73 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.002119/0.002119, allocations: 59.91 kB / 278 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4019/0.404, allocations: 46.63 MB / 324.7 MB, free: 1.941 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003763/0.4078, allocations: 1.566 MB / 326.2 MB, free: 0.7031 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009673/0.4088, allocations: 264 kB / 326.5 MB, free: 0.4961 MB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000138/0.409, allocations: 7.562 kB / 326.5 MB, free: 0.4922 MB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001677/0.4092, allocations: 10.34 kB / 326.5 MB, free: 496 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 5.184e-05/0.4092, allocations: 5.219 kB / 326.5 MB, free: 492 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004351/0.4097, allocations: 105.3 kB / 326.6 MB, free: 408 kB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003198/0.41, allocations: 238.8 kB / 326.8 MB, free: 268 kB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003733/0.4104, allocations: 155 kB / 327 MB, free: 164 kB / 254.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001162/0.4105, allocations: 82.78 kB / 327.1 MB, free: 112 kB / 254.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001837/0.4107, allocations: 87.02 kB / 327.2 MB, free: 44 kB / 254.1 MB Notification: Performance of NFPackage.collectConstants: time 5.265e-05/0.4108, allocations: 18.77 kB / 327.2 MB, free: 40 kB / 254.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001149/0.4109, allocations: 18.47 kB / 327.2 MB, free: 40 kB / 254.1 MB Notification: Performance of NFScalarize.scalarize: time 6.653e-05/0.411, allocations: 49.39 kB / 327.2 MB, free: 0 / 254.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001342/0.4111, allocations: 92.67 kB / 327.3 MB, free: 15.93 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003717/0.4116, allocations: 207.3 kB / 327.5 MB, free: 15.77 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.4116, allocations: 3.938 kB / 327.5 MB, free: 15.76 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.4116, allocations: 1.219 kB / 327.5 MB, free: 15.76 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.485e-06/0.4116, allocations: 0 / 327.5 MB, free: 15.76 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0009993/0.4126, allocations: 479.9 kB / 328 MB, free: 15.3 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.873e-05/0.4127, allocations: 9.969 kB / 328 MB, free: 15.3 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.1e-05/0.4128, allocations: 27.75 kB / 328.1 MB, free: 15.28 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003352/0.4131, allocations: 222.9 kB / 328.3 MB, free: 15.04 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.187e-05/0.4132, allocations: 28.36 kB / 328.3 MB, free: 15.03 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.553e-05/0.4132, allocations: 24.81 kB / 328.3 MB, free: 15.02 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005691/0.4138, allocations: 243.1 kB / 328.6 MB, free: 14.86 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.4138, allocations: 192 / 328.6 MB, free: 14.86 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.057e-05/0.4139, allocations: 14.16 kB / 328.6 MB, free: 14.85 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.328e-05/0.4139, allocations: 9.219 kB / 328.6 MB, free: 14.85 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003225/0.4142, allocations: 154.8 kB / 328.7 MB, free: 14.78 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001136/0.4154, allocations: 0.7051 MB / 329.4 MB, free: 14.14 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004296/0.4158, allocations: 180.9 kB / 329.6 MB, free: 14.04 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001724/0.416, allocations: 75.98 kB / 329.7 MB, free: 14 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.172e-05/0.416, allocations: 2.781 kB / 329.7 MB, free: 14 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003406/0.4164, allocations: 118.7 kB / 329.8 MB, free: 13.91 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 3.316e-06/0.4164, allocations: 0 / 329.8 MB, free: 13.91 MB / 270.1 MB Notification: Performance of matching and sorting (n=24): time 0.000492/0.4169, allocations: 224.6 kB / 330 MB, free: 13.79 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.113e-05/0.4169, allocations: 59.09 kB / 330.1 MB, free: 13.72 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001357/0.4171, allocations: 144.6 kB / 330.2 MB, free: 13.59 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.213e-05/0.4171, allocations: 38.77 kB / 330.3 MB, free: 13.55 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.384e-05/0.4172, allocations: 125.1 kB / 330.4 MB, free: 13.43 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.127e-05/0.4173, allocations: 67.94 kB / 330.5 MB, free: 13.38 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001272/0.4174, allocations: 76.06 kB / 330.5 MB, free: 13.32 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.4176, allocations: 326.3 kB / 330.8 MB, free: 13 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001389/0.4177, allocations: 61.91 kB / 330.9 MB, free: 12.97 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001894/0.4179, allocations: 137.2 kB / 331 MB, free: 12.86 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003237/0.4182, allocations: 174.4 kB / 331.2 MB, free: 12.73 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.4183, allocations: 0 / 331.2 MB, free: 12.73 MB / 270.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004991/0.4188, allocations: 243.2 kB / 331.4 MB, free: 12.6 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.776e-05/0.4188, allocations: 13.88 kB / 331.5 MB, free: 12.59 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.248e-05/0.4188, allocations: 2.25 kB / 331.5 MB, free: 12.59 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.85e-05/0.4189, allocations: 3.438 kB / 331.5 MB, free: 12.59 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001615/0.419, allocations: 31.39 kB / 331.5 MB, free: 12.58 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.465e-05/0.419, allocations: 3.312 kB / 331.5 MB, free: 12.58 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001105/0.4192, allocations: 20.91 kB / 331.5 MB, free: 12.57 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.28e-05/0.4192, allocations: 16.92 kB / 331.5 MB, free: 12.56 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001928/0.4194, allocations: 153.8 kB / 331.7 MB, free: 12.42 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.104e-05/0.4194, allocations: 17.53 kB / 331.7 MB, free: 12.41 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004754/0.4199, allocations: 206.5 kB / 331.9 MB, free: 12.28 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-05/0.42, allocations: 2.75 kB / 331.9 MB, free: 12.28 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.17e-05/0.42, allocations: 1.281 kB / 331.9 MB, free: 12.28 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.884e-06/0.42, allocations: 0 / 331.9 MB, free: 12.28 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009285/0.4209, allocations: 0.5691 MB / 332.5 MB, free: 11.8 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.4209, allocations: 0 / 332.5 MB, free: 11.8 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.052e-05/0.421, allocations: 29.05 kB / 332.5 MB, free: 11.79 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.421, allocations: 1.188 kB / 332.5 MB, free: 11.79 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.728e-05/0.4211, allocations: 5.062 kB / 332.5 MB, free: 11.78 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.4211, allocations: 1.156 kB / 332.5 MB, free: 11.78 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.4211, allocations: 5.156 kB / 332.5 MB, free: 11.78 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003761/0.4215, allocations: 268.3 kB / 332.8 MB, free: 11.59 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.666e-05/0.4216, allocations: 93.17 kB / 332.9 MB, free: 11.48 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.177e-05/0.4216, allocations: 10.2 kB / 332.9 MB, free: 11.47 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.138e-05/0.4217, allocations: 11.38 kB / 332.9 MB, free: 11.46 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001056/0.4218, allocations: 34.17 kB / 332.9 MB, free: 11.44 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.088e-05/0.4218, allocations: 6.219 kB / 332.9 MB, free: 11.44 MB / 270.1 MB Notification: Performance of sorting global known variables: time 7.152e-05/0.4219, allocations: 92.8 kB / 333 MB, free: 11.36 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4219, allocations: 0 / 333 MB, free: 11.36 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003485/0.4223, allocations: 46.22 kB / 333.1 MB, free: 11.35 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 (transition2.enableFire,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,step.newActive,step.oldActive,transition2.fire,transition2.t_start,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 (26): * Single equations (assignments): 22 * 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.0002322/0.4225, allocations: 116.3 kB / 333.2 MB, free: 11.24 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003636/0.4229, allocations: 181.2 kB / 333.4 MB, free: 11.06 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4229, allocations: 0 / 333.4 MB, free: 11.06 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001642/0.4231, allocations: 88.28 kB / 333.4 MB, free: 10.98 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003188/0.4234, allocations: 19.98 kB / 333.5 MB, free: 10.96 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008035/0.4242, allocations: 402.5 kB / 333.9 MB, free: 10.54 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004957/0.4247, allocations: 0.7326 MB / 334.6 MB, free: 9.777 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 8.571e-05/0.4248, allocations: 33.88 kB / 334.6 MB, free: 9.746 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.066e-05/0.4249, allocations: 19.44 kB / 334.6 MB, free: 9.73 MB / 270.1 MB Notification: Performance of SimCode: time 8.32e-07/0.4249, allocations: 0 / 334.6 MB, free: 9.73 MB / 270.1 MB Notification: Performance of Templates: time 0.005523/0.4304, allocations: 1.735 MB / 336.4 MB, free: 8 MB / 270.1 MB make -j1 -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1)