Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.0008044/0.0008046, 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.00672/0.00672, 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.83/1.83, allocations: 205.4 MB / 222.5 MB, free: 5.562 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.0004882/0.0004883, allocations: 11.17 kB / 279.4 MB, free: 12.53 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2989/0.2994, allocations: 47.59 MB / 327 MB, free: 1.551 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.001871/0.3013, allocations: 1.422 MB / 328.4 MB, free: 432 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007421/0.3021, allocations: 280.8 kB / 328.7 MB, free: 204 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001091/0.3022, allocations: 3.781 kB / 328.7 MB, free: 204 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001273/0.3023, allocations: 19.23 kB / 328.7 MB, free: 188 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 6.997e-05/0.3024, allocations: 13.3 kB / 328.7 MB, free: 176 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003937/0.3028, allocations: 99.3 kB / 328.8 MB, free: 96 kB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003997/0.3032, allocations: 248.3 kB / 329.1 MB, free: 15.95 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003567/0.3036, allocations: 161.4 kB / 329.2 MB, free: 15.86 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001141/0.3037, allocations: 72.58 kB / 329.3 MB, free: 15.82 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001799/0.3039, allocations: 77.3 kB / 329.4 MB, free: 15.76 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.509e-05/0.304, allocations: 10.19 kB / 329.4 MB, free: 15.76 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.345e-05/0.3041, allocations: 16.66 kB / 329.4 MB, free: 15.75 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.38e-05/0.3041, allocations: 42.23 kB / 329.5 MB, free: 15.72 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001191/0.3043, allocations: 113.1 kB / 329.6 MB, free: 15.62 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003066/0.3046, allocations: 207.2 kB / 329.8 MB, free: 15.47 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.3046, allocations: 0 / 329.8 MB, free: 15.47 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.3046, allocations: 0 / 329.8 MB, free: 15.47 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.016e-06/0.3046, allocations: 1.156 kB / 329.8 MB, free: 15.47 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.0007488/0.3054, allocations: 443.6 kB / 330.2 MB, free: 15.02 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.377e-05/0.3054, allocations: 16.77 kB / 330.2 MB, free: 15.01 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.823e-05/0.3055, allocations: 24.66 kB / 330.2 MB, free: 15 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002868/0.3058, allocations: 227.3 kB / 330.5 MB, free: 14.76 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.021e-05/0.3059, allocations: 24.59 kB / 330.5 MB, free: 14.75 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.385e-05/0.3059, allocations: 31.17 kB / 330.5 MB, free: 14.73 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005418/0.3065, allocations: 275.2 kB / 330.8 MB, free: 14.54 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.3065, allocations: 192 / 330.8 MB, free: 14.54 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.017e-05/0.3065, allocations: 15.59 kB / 330.8 MB, free: 14.53 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.788e-06/0.3065, allocations: 6.031 kB / 330.8 MB, free: 14.53 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003015/0.3069, allocations: 173.2 kB / 331 MB, free: 14.44 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0012/0.3081, allocations: 0.9694 MB / 332 MB, free: 13.54 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002739/0.3084, allocations: 160.6 kB / 332.1 MB, free: 13.45 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001165/0.3085, allocations: 73.77 kB / 332.2 MB, free: 13.41 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.034e-05/0.3085, allocations: 2.156 kB / 332.2 MB, free: 13.41 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002522/0.3088, allocations: 113.9 kB / 332.3 MB, free: 13.32 MB / 270.1 MB Notification: Performance of pre-optimization done (n=23): time 1.563e-06/0.3088, allocations: 0 / 332.3 MB, free: 13.32 MB / 270.1 MB Notification: Performance of matching and sorting (n=23): time 0.0005125/0.3093, allocations: 208.8 kB / 332.5 MB, free: 13.21 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.851e-05/0.3094, allocations: 58.92 kB / 332.6 MB, free: 13.15 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001546/0.3095, allocations: 159.8 kB / 332.7 MB, free: 13 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.238e-05/0.3096, allocations: 34.08 kB / 332.7 MB, free: 12.97 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001193/0.3097, allocations: 142.2 kB / 332.9 MB, free: 12.84 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.847e-05/0.3098, allocations: 60.5 kB / 332.9 MB, free: 12.79 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.311e-05/0.3098, allocations: 53.41 kB / 333 MB, free: 12.75 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.31, allocations: 328.9 kB / 333.3 MB, free: 12.42 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001217/0.3101, allocations: 62.62 kB / 333.4 MB, free: 12.39 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000201/0.3103, allocations: 142.6 kB / 333.5 MB, free: 12.26 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003144/0.3107, allocations: 192.9 kB / 333.7 MB, free: 12.11 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.3107, allocations: 0 / 333.7 MB, free: 12.11 MB / 270.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004593/0.3111, allocations: 251.1 kB / 334 MB, free: 11.98 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.775e-05/0.3112, allocations: 5.75 kB / 334 MB, free: 11.98 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.006e-06/0.3112, allocations: 2.375 kB / 334 MB, free: 11.98 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.19e-05/0.3112, allocations: 4.531 kB / 334 MB, free: 11.98 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000158/0.3114, allocations: 30.33 kB / 334 MB, free: 11.97 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.673e-05/0.3114, allocations: 7.219 kB / 334 MB, free: 11.96 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001219/0.3115, allocations: 29.02 kB / 334 MB, free: 11.95 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.771e-05/0.3116, allocations: 15.02 kB / 334 MB, free: 11.94 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.0001653/0.3118, allocations: 165.3 kB / 334.2 MB, free: 11.79 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.628e-05/0.3118, allocations: 13.59 kB / 334.2 MB, free: 11.78 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004075/0.3122, allocations: 188.5 kB / 334.4 MB, free: 11.67 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.3122, allocations: 2.469 kB / 334.4 MB, free: 11.67 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/0.3122, allocations: 0 / 334.4 MB, free: 11.67 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.289e-06/0.3122, allocations: 3.938 kB / 334.4 MB, free: 11.66 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007998/0.313, allocations: 0.5963 MB / 335 MB, free: 11.09 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.3131, allocations: 0 / 335 MB, free: 11.09 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.604e-05/0.3131, allocations: 23.92 kB / 335 MB, free: 11.07 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.061e-06/0.3132, allocations: 7.938 kB / 335 MB, free: 11.06 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.242e-05/0.3132, allocations: 3.938 kB / 335 MB, free: 11.05 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.539e-06/0.3132, allocations: 4 kB / 335 MB, free: 11.05 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3132, allocations: 0 / 335 MB, free: 11.05 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003331/0.3135, allocations: 283.2 kB / 335.3 MB, free: 10.76 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.615e-05/0.3136, allocations: 92.89 kB / 335.4 MB, free: 10.65 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.787e-05/0.3136, allocations: 4 kB / 335.4 MB, free: 10.64 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.683e-05/0.3137, allocations: 11.98 kB / 335.4 MB, free: 10.63 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.704e-05/0.3138, allocations: 19.97 kB / 335.4 MB, free: 10.61 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.422e-05/0.3139, allocations: 4 kB / 335.4 MB, free: 10.61 MB / 270.1 MB Notification: Performance of sorting global known variables: time 6.954e-05/0.3139, allocations: 99.27 kB / 335.5 MB, free: 10.51 MB / 270.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.3139, allocations: 0 / 335.5 MB, free: 10.51 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003415/0.3143, allocations: 51.84 kB / 335.6 MB, free: 10.46 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.0001751/0.3145, allocations: 107.2 kB / 335.7 MB, free: 10.35 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003248/0.3148, allocations: 187.7 kB / 335.9 MB, free: 10.16 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.3148, allocations: 0 / 335.9 MB, free: 10.16 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001207/0.3149, allocations: 83.91 kB / 336 MB, free: 10.08 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002991/0.3152, allocations: 24.88 kB / 336 MB, free: 10.06 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007004/0.3159, allocations: 412.3 kB / 336.4 MB, free: 9.629 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003059/0.3163, allocations: 0.7326 MB / 337.1 MB, free: 8.871 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 9.189e-05/0.3164, allocations: 29.94 kB / 337.2 MB, free: 8.844 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.586e-05/0.3164, allocations: 23.38 kB / 337.2 MB, free: 8.82 MB / 270.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3164, allocations: 0 / 337.2 MB, free: 8.82 MB / 270.1 MB Notification: Performance of Templates: time 0.004877/0.3213, allocations: 1.704 MB / 338.9 MB, free: 7.117 MB / 270.1 MB make -j1 -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1)