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.00134/0.00134, allocations: 111.3 kB / 15.34 MB, free: 0.5117 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.001312/0.001312, allocations: 185.9 kB / 16.25 MB, free: 6.137 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.195/2.195, allocations: 205.1 MB / 222.1 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.002155/0.002155, allocations: 59.91 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3147/0.3168, allocations: 46.62 MB / 324.8 MB, free: 1.938 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003067/0.32, allocations: 1.559 MB / 326.4 MB, free: 0.707 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005867/0.3206, allocations: 266.2 kB / 326.7 MB, free: 0.4961 MB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001044/0.3207, allocations: 7.969 kB / 326.7 MB, free: 0.4922 MB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001434/0.3209, allocations: 14.58 kB / 326.7 MB, free: 492 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 4.478e-05/0.3209, allocations: 13.22 kB / 326.7 MB, free: 480 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003728/0.3213, allocations: 94.42 kB / 326.8 MB, free: 404 kB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003163/0.3216, allocations: 258.9 kB / 327 MB, free: 252 kB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002833/0.3219, allocations: 161.3 kB / 327.2 MB, free: 140 kB / 254.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001032/0.322, allocations: 86.23 kB / 327.3 MB, free: 84 kB / 254.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001323/0.3222, allocations: 98.8 kB / 327.4 MB, free: 4 kB / 254.1 MB Notification: Performance of NFPackage.collectConstants: time 4.78e-05/0.3222, allocations: 22.44 kB / 327.4 MB, free: 4 kB / 254.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.446e-05/0.3223, allocations: 26 kB / 327.4 MB, free: 4 kB / 254.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001231/0.3225, allocations: 57.94 kB / 327.5 MB, free: 15.95 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001153/0.3226, allocations: 99.91 kB / 327.6 MB, free: 15.88 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003354/0.3229, allocations: 224.1 kB / 327.8 MB, free: 15.71 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3229, allocations: 0 / 327.8 MB, free: 15.71 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.3229, allocations: 4 kB / 327.8 MB, free: 15.71 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.323, allocations: 0 / 327.8 MB, free: 15.71 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.0008898/0.3239, allocations: 485.9 kB / 328.3 MB, free: 15.24 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.355e-05/0.3239, allocations: 8.25 kB / 328.3 MB, free: 15.24 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.484e-05/0.324, allocations: 24.72 kB / 328.3 MB, free: 15.23 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003529/0.3244, allocations: 226.2 kB / 328.5 MB, free: 14.99 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.386e-05/0.3244, allocations: 28.55 kB / 328.6 MB, free: 14.97 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.051e-05/0.3245, allocations: 25.12 kB / 328.6 MB, free: 14.96 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005176/0.325, allocations: 242.3 kB / 328.8 MB, free: 14.8 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.134e-05/0.3251, allocations: 5.484 kB / 328.8 MB, free: 14.8 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.055e-05/0.3251, allocations: 13.28 kB / 328.8 MB, free: 14.79 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.266e-05/0.3251, allocations: 5.219 kB / 328.8 MB, free: 14.79 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003311/0.3254, allocations: 159.5 kB / 329 MB, free: 14.71 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001288/0.3267, allocations: 0.7004 MB / 329.7 MB, free: 14.09 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003887/0.3271, allocations: 172.1 kB / 329.9 MB, free: 13.99 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000166/0.3273, allocations: 88.98 kB / 329.9 MB, free: 13.94 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.832e-05/0.3274, allocations: 6.328 kB / 330 MB, free: 13.93 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003824/0.3278, allocations: 111.1 kB / 330.1 MB, free: 13.85 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 3.616e-06/0.3278, allocations: 0 / 330.1 MB, free: 13.85 MB / 270.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005646/0.3283, allocations: 228 kB / 330.3 MB, free: 13.73 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.72e-05/0.3284, allocations: 54.72 kB / 330.3 MB, free: 13.66 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001475/0.3286, allocations: 149.6 kB / 330.5 MB, free: 13.53 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 6.354e-05/0.3286, allocations: 38.05 kB / 330.5 MB, free: 13.49 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.3288, allocations: 133.6 kB / 330.7 MB, free: 13.36 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.153e-05/0.3288, allocations: 64.03 kB / 330.7 MB, free: 13.31 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001692/0.329, allocations: 75.36 kB / 330.8 MB, free: 13.26 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.00019/0.3292, allocations: 322.9 kB / 331.1 MB, free: 12.94 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001313/0.3293, allocations: 66.03 kB / 331.2 MB, free: 12.91 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001667/0.3295, allocations: 132.6 kB / 331.3 MB, free: 12.8 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002673/0.3298, allocations: 178.5 kB / 331.5 MB, free: 12.66 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.3298, allocations: 1.094 kB / 331.5 MB, free: 12.66 MB / 270.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004968/0.3303, allocations: 246.6 kB / 331.7 MB, free: 12.53 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.677e-05/0.3303, allocations: 5.656 kB / 331.7 MB, free: 12.53 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.3303, allocations: 2.5 kB / 331.7 MB, free: 12.53 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.521e-05/0.3304, allocations: 3.625 kB / 331.7 MB, free: 12.53 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001701/0.3306, allocations: 31.3 kB / 331.8 MB, free: 12.52 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.728e-06/0.3306, allocations: 2.594 kB / 331.8 MB, free: 12.52 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001129/0.3307, allocations: 27.77 kB / 331.8 MB, free: 12.5 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.682e-05/0.3307, allocations: 13.81 kB / 331.8 MB, free: 12.5 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.0001747/0.3309, allocations: 155.4 kB / 331.9 MB, free: 12.35 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.95e-05/0.331, allocations: 25.8 kB / 332 MB, free: 12.33 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00039/0.3313, allocations: 189.2 kB / 332.2 MB, free: 12.22 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.752e-06/0.3314, allocations: 6.812 kB / 332.2 MB, free: 12.22 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.3314, allocations: 1.125 kB / 332.2 MB, free: 12.22 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.3314, allocations: 0 / 332.2 MB, free: 12.22 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008915/0.3323, allocations: 0.569 MB / 332.7 MB, free: 11.74 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.3323, allocations: 1.5 kB / 332.7 MB, free: 11.74 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.537e-05/0.3324, allocations: 19.52 kB / 332.8 MB, free: 11.73 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.125e-06/0.3324, allocations: 1.438 kB / 332.8 MB, free: 11.73 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.573e-05/0.3324, allocations: 5.438 kB / 332.8 MB, free: 11.73 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.3324, allocations: 5.188 kB / 332.8 MB, free: 11.72 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/0.3324, allocations: 9.266 kB / 332.8 MB, free: 11.71 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003354/0.3328, allocations: 276.5 kB / 333 MB, free: 11.51 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.192e-05/0.3328, allocations: 96.84 kB / 333.1 MB, free: 11.39 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001237/0.333, allocations: 15.98 kB / 333.2 MB, free: 11.38 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.369e-05/0.3331, allocations: 7.938 kB / 333.2 MB, free: 11.37 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.108e-05/0.3331, allocations: 23.91 kB / 333.2 MB, free: 11.35 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.692e-05/0.3332, allocations: 16 kB / 333.2 MB, free: 11.33 MB / 270.1 MB Notification: Performance of sorting global known variables: time 5.501e-05/0.3332, allocations: 95.77 kB / 333.3 MB, free: 11.24 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3332, allocations: 0 / 333.3 MB, free: 11.24 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003118/0.3335, allocations: 47.91 kB / 333.3 MB, free: 11.19 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.0001697/0.3337, allocations: 115.1 kB / 333.5 MB, free: 11.07 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003606/0.3341, allocations: 191.7 kB / 333.6 MB, free: 10.88 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.3341, allocations: 448 / 333.6 MB, free: 10.88 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001239/0.3342, allocations: 92.34 kB / 333.7 MB, free: 10.79 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003041/0.3345, allocations: 19.98 kB / 333.8 MB, free: 10.77 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006151/0.3352, allocations: 385.5 kB / 334.1 MB, free: 10.37 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004357/0.3356, allocations: 0.7324 MB / 334.9 MB, free: 9.613 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 8.354e-05/0.3357, allocations: 21.94 kB / 334.9 MB, free: 9.594 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.799e-05/0.3358, allocations: 23.44 kB / 334.9 MB, free: 9.57 MB / 270.1 MB Notification: Performance of SimCode: time 3.6e-07/0.3358, allocations: 0 / 334.9 MB, free: 9.57 MB / 270.1 MB Notification: Performance of Templates: time 0.005337/0.3411, allocations: 1.827 MB / 336.7 MB, free: 7.746 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)