Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001083/0.001083, allocations: 98.27 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.01112/0.01112, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.712/1.712, allocations: 205.4 MB / 222.5 MB, free: 5.566 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.0006697/0.0006699, allocations: 14.66 kB / 279.4 MB, free: 12.53 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2979/0.2986, allocations: 47.58 MB / 327 MB, free: 1.43 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.001521/0.3002, allocations: 1.402 MB / 328.4 MB, free: 320 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.00062/0.3008, allocations: 280.8 kB / 328.7 MB, free: 92 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001046/0.3009, allocations: 8.188 kB / 328.7 MB, free: 88 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 9.229e-05/0.301, allocations: 19.3 kB / 328.7 MB, free: 72 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 4.725e-05/0.3011, allocations: 4.781 kB / 328.7 MB, free: 68 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003713/0.3015, allocations: 102.9 kB / 328.8 MB, free: 15.98 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003491/0.3018, allocations: 245.7 kB / 329.1 MB, free: 15.85 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003142/0.3021, allocations: 168.6 kB / 329.2 MB, free: 15.73 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.836e-05/0.3022, allocations: 72.14 kB / 329.3 MB, free: 15.69 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001187/0.3024, allocations: 73.81 kB / 329.4 MB, free: 15.64 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.163e-05/0.3024, allocations: 10.53 kB / 329.4 MB, free: 15.64 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.419e-05/0.3025, allocations: 20.55 kB / 329.4 MB, free: 15.63 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.226e-05/0.3025, allocations: 41.92 kB / 329.4 MB, free: 15.6 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001076/0.3027, allocations: 109.4 kB / 329.5 MB, free: 15.5 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002472/0.3029, allocations: 216 kB / 329.8 MB, free: 15.34 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.3029, allocations: 0 / 329.8 MB, free: 15.34 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.3029, allocations: 0 / 329.8 MB, free: 15.34 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.304e-06/0.3029, allocations: 0 / 329.8 MB, free: 15.34 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.0006396/0.3036, allocations: 450.9 kB / 330.2 MB, free: 14.9 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.3036, allocations: 8.719 kB / 330.2 MB, free: 14.9 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.497e-05/0.3037, allocations: 24.84 kB / 330.2 MB, free: 14.89 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002443/0.304, allocations: 231.8 kB / 330.5 MB, free: 14.64 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.497e-05/0.304, allocations: 25.19 kB / 330.5 MB, free: 14.63 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.011e-05/0.3041, allocations: 26.56 kB / 330.5 MB, free: 14.62 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004567/0.3045, allocations: 279.8 kB / 330.8 MB, free: 14.42 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.3045, allocations: 3.938 kB / 330.8 MB, free: 14.42 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.684e-05/0.3046, allocations: 10.88 kB / 330.8 MB, free: 14.41 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.3046, allocations: 7.031 kB / 330.8 MB, free: 14.41 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003492/0.305, allocations: 161.9 kB / 331 MB, free: 14.34 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001232/0.3062, allocations: 0.9789 MB / 331.9 MB, free: 13.43 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002877/0.3065, allocations: 151.7 kB / 332.1 MB, free: 13.34 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001264/0.3066, allocations: 74.27 kB / 332.2 MB, free: 13.3 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.655e-05/0.3067, allocations: 6.281 kB / 332.2 MB, free: 13.3 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002483/0.3069, allocations: 105.3 kB / 332.3 MB, free: 13.22 MB / 270.1 MB Notification: Performance of pre-optimization done (n=23): time 2.344e-06/0.3069, allocations: 4 kB / 332.3 MB, free: 13.21 MB / 270.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004792/0.3074, allocations: 217.9 kB / 332.5 MB, free: 13.1 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.816e-05/0.3075, allocations: 58.75 kB / 332.5 MB, free: 13.04 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001554/0.3076, allocations: 148.8 kB / 332.7 MB, free: 12.9 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.417e-05/0.3077, allocations: 41.88 kB / 332.7 MB, free: 12.86 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001152/0.3078, allocations: 143.5 kB / 332.9 MB, free: 12.73 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.83e-05/0.3079, allocations: 55.58 kB / 332.9 MB, free: 12.68 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.06e-05/0.308, allocations: 51.56 kB / 333 MB, free: 12.64 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.3081, allocations: 339 kB / 333.3 MB, free: 12.3 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001215/0.3083, allocations: 62 kB / 333.4 MB, free: 12.27 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001806/0.3085, allocations: 146.8 kB / 333.5 MB, free: 12.14 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002734/0.3087, allocations: 192.8 kB / 333.7 MB, free: 11.99 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.3087, allocations: 5.75 kB / 333.7 MB, free: 11.99 MB / 270.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004306/0.3092, allocations: 246.4 kB / 333.9 MB, free: 11.86 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.3092, allocations: 5.781 kB / 333.9 MB, free: 11.86 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.3092, allocations: 2.375 kB / 334 MB, free: 11.86 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.031e-05/0.3093, allocations: 4.625 kB / 334 MB, free: 11.86 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001496/0.3094, allocations: 38.45 kB / 334 MB, free: 11.84 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.065e-05/0.3094, allocations: 11.19 kB / 334 MB, free: 11.84 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001126/0.3095, allocations: 29.97 kB / 334 MB, free: 11.82 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.742e-05/0.3096, allocations: 13.86 kB / 334 MB, free: 11.81 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.0001836/0.3098, allocations: 158.8 kB / 334.2 MB, free: 11.66 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.534e-05/0.3098, allocations: 9.438 kB / 334.2 MB, free: 11.66 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003838/0.3102, allocations: 192.5 kB / 334.4 MB, free: 11.55 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.3102, allocations: 2.094 kB / 334.4 MB, free: 11.55 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.302e-05/0.3102, allocations: 8.969 kB / 334.4 MB, free: 11.54 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.3103, allocations: 3.938 kB / 334.4 MB, free: 11.54 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009282/0.3112, allocations: 0.5964 MB / 335 MB, free: 10.97 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.065e-06/0.3112, allocations: 0 / 335 MB, free: 10.97 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.557e-05/0.3113, allocations: 19.92 kB / 335 MB, free: 10.95 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/0.3113, allocations: 4 kB / 335 MB, free: 10.95 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.766e-05/0.3113, allocations: 4 kB / 335 MB, free: 10.94 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.3113, allocations: 4 kB / 335 MB, free: 10.94 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.3113, allocations: 0 / 335 MB, free: 10.94 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003371/0.3117, allocations: 275.2 kB / 335.3 MB, free: 10.65 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.88e-05/0.3118, allocations: 96.8 kB / 335.4 MB, free: 10.54 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.888e-05/0.3118, allocations: 8 kB / 335.4 MB, free: 10.53 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.47e-05/0.3119, allocations: 11.98 kB / 335.4 MB, free: 10.52 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.101e-05/0.312, allocations: 15.97 kB / 335.4 MB, free: 10.5 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.476e-05/0.312, allocations: 12 kB / 335.5 MB, free: 10.49 MB / 270.1 MB Notification: Performance of sorting global known variables: time 7.116e-05/0.3121, allocations: 99.27 kB / 335.5 MB, free: 10.39 MB / 270.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.3121, allocations: 0 / 335.5 MB, free: 10.39 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003236/0.3124, allocations: 51.84 kB / 335.6 MB, free: 10.34 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.0001879/0.3126, allocations: 111.1 kB / 335.7 MB, free: 10.23 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003538/0.313, allocations: 188.1 kB / 335.9 MB, free: 10.04 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.313, allocations: 4.188 kB / 335.9 MB, free: 10.04 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001215/0.3131, allocations: 75.92 kB / 336 MB, free: 9.965 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003047/0.3134, allocations: 28.84 kB / 336 MB, free: 9.938 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000833/0.3143, allocations: 407.8 kB / 336.4 MB, free: 9.512 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000608/0.3149, allocations: 0.7404 MB / 337.1 MB, free: 8.746 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 9.352e-05/0.315, allocations: 25.94 kB / 337.2 MB, free: 8.723 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.227e-05/0.3151, allocations: 23.44 kB / 337.2 MB, free: 8.699 MB / 270.1 MB Notification: Performance of SimCode: time 2.475e-06/0.3151, allocations: 4 kB / 337.2 MB, free: 8.695 MB / 270.1 MB Notification: Performance of Templates: time 0.005273/0.3204, allocations: 1.708 MB / 338.9 MB, free: 6.988 MB / 270.1 MB make -j1 -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1)