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.0009729/0.0009729, allocations: 91.92 kB / 15.06 MB, free: 1.098 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.001188/0.001188, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.752/1.752, allocations: 205.4 MB / 222.1 MB, free: 5.672 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.0004548/0.0004548, allocations: 12 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3141/0.3146, allocations: 47.58 MB / 326.5 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.001783/0.3164, allocations: 1.373 MB / 327.8 MB, free: 308 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005936/0.317, allocations: 275.9 kB / 328.1 MB, free: 84 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001048/0.3171, allocations: 4 kB / 328.1 MB, free: 84 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001148/0.3173, allocations: 19.55 kB / 328.1 MB, free: 68 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 5.14e-05/0.3173, allocations: 21.06 kB / 328.1 MB, free: 48 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003977/0.3177, allocations: 86.23 kB / 328.2 MB, free: 15.98 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003951/0.3181, allocations: 236.8 kB / 328.5 MB, free: 15.84 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002967/0.3184, allocations: 157.7 kB / 328.6 MB, free: 15.74 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.525e-05/0.3185, allocations: 64.22 kB / 328.7 MB, free: 15.7 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001315/0.3187, allocations: 84.88 kB / 328.8 MB, free: 15.64 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.893e-05/0.3187, allocations: 9.125 kB / 328.8 MB, free: 15.64 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.367e-05/0.3188, allocations: 17.81 kB / 328.8 MB, free: 15.63 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.91e-05/0.3189, allocations: 37.67 kB / 328.8 MB, free: 15.61 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 7.14e-05/0.3189, allocations: 58.7 kB / 328.9 MB, free: 15.55 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002097/0.3192, allocations: 158.8 kB / 329 MB, free: 15.44 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.3192, allocations: 0 / 329 MB, free: 15.44 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.797e-06/0.3192, allocations: 1 kB / 329 MB, free: 15.44 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.3192, allocations: 0 / 329 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.0007239/0.3199, allocations: 454.3 kB / 329.5 MB, free: 14.99 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.606e-05/0.32, allocations: 9.25 kB / 329.5 MB, free: 14.99 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.648e-05/0.32, allocations: 24.06 kB / 329.5 MB, free: 14.98 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002771/0.3203, allocations: 230.1 kB / 329.7 MB, free: 14.73 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.822e-05/0.3204, allocations: 24.66 kB / 329.8 MB, free: 14.72 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.554e-05/0.3204, allocations: 30.27 kB / 329.8 MB, free: 14.71 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005036/0.321, allocations: 277.3 kB / 330.1 MB, free: 14.51 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.321, allocations: 0 / 330.1 MB, free: 14.51 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.605e-05/0.321, allocations: 10.56 kB / 330.1 MB, free: 14.5 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.315e-05/0.321, allocations: 6.875 kB / 330.1 MB, free: 14.5 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003541/0.3214, allocations: 164.8 kB / 330.2 MB, free: 14.42 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001252/0.3226, allocations: 0.9746 MB / 331.2 MB, free: 13.52 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002974/0.323, allocations: 147.1 kB / 331.4 MB, free: 13.44 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001377/0.3231, allocations: 77.36 kB / 331.4 MB, free: 13.39 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.376e-05/0.3231, allocations: 2.438 kB / 331.4 MB, free: 13.39 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002531/0.3234, allocations: 117.4 kB / 331.6 MB, free: 13.3 MB / 270.1 MB Notification: Performance of pre-optimization done (n=23): time 1.784e-06/0.3234, allocations: 0 / 331.6 MB, free: 13.3 MB / 270.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004639/0.3239, allocations: 211 kB / 331.8 MB, free: 13.19 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.835e-05/0.3239, allocations: 55.41 kB / 331.8 MB, free: 13.13 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001366/0.3241, allocations: 160.4 kB / 332 MB, free: 12.98 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.906e-05/0.3241, allocations: 33.48 kB / 332 MB, free: 12.95 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.761e-05/0.3242, allocations: 147.9 kB / 332.1 MB, free: 12.81 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.09e-05/0.3243, allocations: 59.78 kB / 332.2 MB, free: 12.76 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.193e-05/0.3243, allocations: 4.812 kB / 332.2 MB, free: 12.75 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.3244, allocations: 330.5 kB / 332.5 MB, free: 12.43 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000118/0.3245, allocations: 61.59 kB / 332.6 MB, free: 12.39 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000172/0.3247, allocations: 134 kB / 332.7 MB, free: 12.28 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000144/0.3249, allocations: 79.69 kB / 332.8 MB, free: 12.23 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.3249, allocations: 0 / 332.8 MB, free: 12.23 MB / 270.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004049/0.3253, allocations: 249.7 kB / 333 MB, free: 12.1 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.34e-05/0.3253, allocations: 9.078 kB / 333.1 MB, free: 12.1 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.3253, allocations: 2.594 kB / 333.1 MB, free: 12.1 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.3254, allocations: 4.188 kB / 333.1 MB, free: 12.1 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001542/0.3255, allocations: 34.64 kB / 333.1 MB, free: 12.09 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.14e-05/0.3255, allocations: 7.344 kB / 333.1 MB, free: 12.08 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001068/0.3256, allocations: 33.27 kB / 333.1 MB, free: 12.06 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.612e-05/0.3257, allocations: 10.53 kB / 333.1 MB, free: 12.06 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,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.condition,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,stateGraphRoot.activeSteps,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000159/0.3259, allocations: 154.4 kB / 333.3 MB, free: 11.92 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.866e-05/0.3259, allocations: 18.14 kB / 333.3 MB, free: 11.91 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004509/0.3263, allocations: 198.4 kB / 333.5 MB, free: 11.79 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.3264, allocations: 2.25 kB / 333.5 MB, free: 11.79 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.3264, allocations: 1.062 kB / 333.5 MB, free: 11.79 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.3264, allocations: 0 / 333.5 MB, free: 11.79 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000802/0.3272, allocations: 0.6031 MB / 334.1 MB, free: 11.27 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.3272, allocations: 0 / 334.1 MB, free: 11.27 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.327e-05/0.3273, allocations: 19.3 kB / 334.1 MB, free: 11.26 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.3273, allocations: 1.125 kB / 334.1 MB, free: 11.26 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.638e-05/0.3273, allocations: 6.094 kB / 334.1 MB, free: 11.25 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.3273, allocations: 1.062 kB / 334.1 MB, free: 11.25 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3273, allocations: 0 / 334.1 MB, free: 11.25 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003723/0.3277, allocations: 277.6 kB / 334.4 MB, free: 11.05 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.005e-05/0.3278, allocations: 93.66 kB / 334.5 MB, free: 10.95 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.787e-05/0.3278, allocations: 5.156 kB / 334.5 MB, free: 10.94 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.603e-05/0.3279, allocations: 12.58 kB / 334.5 MB, free: 10.93 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.695e-05/0.328, allocations: 17.69 kB / 334.5 MB, free: 10.93 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.713e-05/0.328, allocations: 12.31 kB / 334.5 MB, free: 10.92 MB / 270.1 MB Notification: Performance of sorting global known variables: time 6.803e-05/0.3281, allocations: 95.45 kB / 334.6 MB, free: 10.84 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3281, allocations: 1.094 kB / 334.6 MB, free: 10.84 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003272/0.3284, allocations: 55.14 kB / 334.7 MB, free: 10.82 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001658/0.3286, allocations: 113 kB / 334.8 MB, free: 10.71 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003327/0.329, allocations: 179.4 kB / 335 MB, free: 10.56 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.329, allocations: 0 / 335 MB, free: 10.56 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000128/0.3291, allocations: 79.91 kB / 335.1 MB, free: 10.48 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003086/0.3294, allocations: 23.89 kB / 335.1 MB, free: 10.46 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006765/0.3301, allocations: 392.4 kB / 335.5 MB, free: 10.05 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003705/0.3305, allocations: 0.7367 MB / 336.2 MB, free: 9.289 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 9.381e-05/0.3306, allocations: 33.89 kB / 336.2 MB, free: 9.258 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.662e-05/0.3306, allocations: 23.42 kB / 336.3 MB, free: 9.234 MB / 270.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3306, allocations: 0 / 336.3 MB, free: 9.234 MB / 270.1 MB Notification: Performance of Templates: time 0.004575/0.3352, allocations: 1.646 MB / 337.9 MB, free: 7.59 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)