Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.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_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007932/0.0007932, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005504/0.005504, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.667/1.667, allocations: 205.4 MB / 222.4 MB, free: 5.57 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.0004834/0.0004834, allocations: 16 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.313/0.3135, allocations: 47.58 MB / 327 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.00212/0.3157, allocations: 1.437 MB / 328.5 MB, free: 280 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008908/0.3166, allocations: 273.1 kB / 328.7 MB, free: 60 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001453/0.3167, allocations: 8.156 kB / 328.7 MB, free: 56 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001619/0.3169, allocations: 19.05 kB / 328.7 MB, free: 40 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 8.651e-05/0.317, allocations: 5.219 kB / 328.8 MB, free: 36 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005262/0.3175, allocations: 106 kB / 328.9 MB, free: 15.95 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004485/0.318, allocations: 251.4 kB / 329.1 MB, free: 15.81 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004259/0.3184, allocations: 151.6 kB / 329.2 MB, free: 15.72 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001348/0.3186, allocations: 67.84 kB / 329.3 MB, free: 15.68 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001793/0.3188, allocations: 85.38 kB / 329.4 MB, free: 15.62 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.974e-05/0.3188, allocations: 10.59 kB / 329.4 MB, free: 15.62 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.513e-05/0.3189, allocations: 16.59 kB / 329.4 MB, free: 15.61 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.551e-05/0.319, allocations: 46.16 kB / 329.5 MB, free: 15.58 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001559/0.3192, allocations: 113 kB / 329.6 MB, free: 15.48 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003551/0.3196, allocations: 203.1 kB / 329.8 MB, free: 15.33 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.366e-06/0.3196, allocations: 0 / 329.8 MB, free: 15.33 MB / 270.1 MB Notification: Performance of FrontEnd: time 5.932e-06/0.3196, allocations: 0.9375 kB / 329.8 MB, free: 15.33 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.208e-05/0.3196, allocations: 0 / 329.8 MB, free: 15.33 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.0008867/0.3205, allocations: 443 kB / 330.2 MB, free: 14.88 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.094e-05/0.3206, allocations: 13.7 kB / 330.2 MB, free: 14.88 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.322e-05/0.3207, allocations: 24.31 kB / 330.2 MB, free: 14.86 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003225/0.321, allocations: 228.3 kB / 330.5 MB, free: 14.62 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.495e-05/0.3211, allocations: 24 kB / 330.5 MB, free: 14.61 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.949e-05/0.3211, allocations: 30.83 kB / 330.5 MB, free: 14.6 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005947/0.3217, allocations: 267.1 kB / 330.8 MB, free: 14.41 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.612e-05/0.3218, allocations: 5.156 kB / 330.8 MB, free: 14.41 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.375e-05/0.3218, allocations: 14.5 kB / 330.8 MB, free: 14.39 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.675e-05/0.3218, allocations: 6.688 kB / 330.8 MB, free: 14.39 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004069/0.3223, allocations: 169.5 kB / 331 MB, free: 14.31 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001284/0.3236, allocations: 0.9695 MB / 331.9 MB, free: 13.41 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003076/0.3239, allocations: 156.1 kB / 332.1 MB, free: 13.32 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001353/0.324, allocations: 81.02 kB / 332.2 MB, free: 13.28 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.61e-05/0.3241, allocations: 7.141 kB / 332.2 MB, free: 13.27 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002691/0.3243, allocations: 113.5 kB / 332.3 MB, free: 13.18 MB / 270.1 MB Notification: Performance of pre-optimization done (n=23): time 1.583e-06/0.3243, allocations: 4 kB / 332.3 MB, free: 13.18 MB / 270.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004908/0.3248, allocations: 205.4 kB / 332.5 MB, free: 13.08 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.581e-05/0.3249, allocations: 62.05 kB / 332.6 MB, free: 13.01 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001402/0.3251, allocations: 151.8 kB / 332.7 MB, free: 12.87 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.787e-05/0.3251, allocations: 37.98 kB / 332.7 MB, free: 12.83 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001274/0.3252, allocations: 138.6 kB / 332.9 MB, free: 12.7 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.902e-05/0.3253, allocations: 65.33 kB / 332.9 MB, free: 12.65 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.211e-05/0.3254, allocations: 50.88 kB / 333 MB, free: 12.61 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.3255, allocations: 334.3 kB / 333.3 MB, free: 12.28 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000133/0.3257, allocations: 62.97 kB / 333.4 MB, free: 12.25 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001784/0.3258, allocations: 142.2 kB / 333.5 MB, free: 12.12 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003021/0.3262, allocations: 185.4 kB / 333.7 MB, free: 11.98 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/0.3262, allocations: 4 kB / 333.7 MB, free: 11.97 MB / 270.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004191/0.3266, allocations: 251.7 kB / 334 MB, free: 11.84 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.3266, allocations: 5.438 kB / 334 MB, free: 11.84 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.287e-05/0.3266, allocations: 2.125 kB / 334 MB, free: 11.84 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.044e-05/0.3267, allocations: 8.844 kB / 334 MB, free: 11.84 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001483/0.3268, allocations: 29.45 kB / 334 MB, free: 11.83 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.365e-05/0.3268, allocations: 8.719 kB / 334 MB, free: 11.82 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001107/0.327, allocations: 24.77 kB / 334 MB, free: 11.81 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.442e-05/0.327, allocations: 14 kB / 334 MB, free: 11.8 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.0001692/0.3272, allocations: 166.5 kB / 334.2 MB, free: 11.65 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.347e-05/0.3272, allocations: 13.09 kB / 334.2 MB, free: 11.64 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003769/0.3276, allocations: 187.8 kB / 334.4 MB, free: 11.53 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.3276, allocations: 2.219 kB / 334.4 MB, free: 11.53 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.515e-06/0.3276, allocations: 5.094 kB / 334.4 MB, free: 11.53 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.3276, allocations: 3.938 kB / 334.4 MB, free: 11.52 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007953/0.3284, allocations: 0.5918 MB / 335 MB, free: 10.98 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.3285, allocations: 0 / 335 MB, free: 10.98 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.169e-05/0.3285, allocations: 15.98 kB / 335 MB, free: 10.96 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.903e-06/0.3285, allocations: 7.938 kB / 335 MB, free: 10.96 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.558e-05/0.3286, allocations: 4 kB / 335 MB, free: 10.95 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.46e-06/0.3286, allocations: 8 kB / 335 MB, free: 10.95 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3286, allocations: 3.938 kB / 335 MB, free: 10.94 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003/0.3289, allocations: 275.2 kB / 335.3 MB, free: 10.66 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.658e-05/0.329, allocations: 92.89 kB / 335.4 MB, free: 10.55 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.789e-05/0.329, allocations: 8 kB / 335.4 MB, free: 10.54 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.966e-05/0.3291, allocations: 11.98 kB / 335.4 MB, free: 10.53 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.641e-05/0.3292, allocations: 19.97 kB / 335.4 MB, free: 10.51 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.361e-05/0.3292, allocations: 8 kB / 335.5 MB, free: 10.5 MB / 270.1 MB Notification: Performance of sorting global known variables: time 6.008e-05/0.3292, allocations: 95.83 kB / 335.5 MB, free: 10.41 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3293, allocations: 0 / 335.5 MB, free: 10.41 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.000302/0.3296, allocations: 51.84 kB / 335.6 MB, free: 10.36 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,transition1.enableFire,step.localActive,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.0001452/0.3297, allocations: 107.1 kB / 335.7 MB, free: 10.24 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003208/0.33, allocations: 188.2 kB / 335.9 MB, free: 10.06 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 4.127e-06/0.3301, allocations: 4.125 kB / 335.9 MB, free: 10.05 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001419/0.3302, allocations: 83.91 kB / 336 MB, free: 9.973 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002897/0.3305, allocations: 19.91 kB / 336 MB, free: 9.953 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006463/0.3312, allocations: 407.7 kB / 336.4 MB, free: 9.527 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003373/0.3315, allocations: 0.7404 MB / 337.1 MB, free: 8.762 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 8.559e-05/0.3316, allocations: 25.94 kB / 337.2 MB, free: 8.738 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.638e-05/0.3317, allocations: 23.38 kB / 337.2 MB, free: 8.715 MB / 270.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3317, allocations: 4 kB / 337.2 MB, free: 8.711 MB / 270.1 MB Notification: Performance of Templates: time 0.005033/0.3367, allocations: 1.697 MB / 338.9 MB, free: 7.016 MB / 270.1 MB make -j1 -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1)