Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.001739/0.001739, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00205/0.00205, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.625/1.625, allocations: 205.1 MB / 222.4 MB, free: 4.617 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.001404/0.001404, allocations: 55.92 kB / 278.7 MB, free: 12.37 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3099/0.3114, allocations: 46.63 MB / 325.3 MB, free: 1.855 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003103/0.3145, allocations: 1.472 MB / 326.8 MB, free: 0.6836 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.000614/0.3152, allocations: 250.5 kB / 327 MB, free: 500 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.297e-05/0.3153, allocations: 3.531 kB / 327 MB, free: 500 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001328/0.3154, allocations: 19.62 kB / 327 MB, free: 484 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 4.403e-05/0.3155, allocations: 19.78 kB / 327.1 MB, free: 464 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003805/0.3159, allocations: 108.9 kB / 327.2 MB, free: 372 kB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003455/0.3162, allocations: 260.3 kB / 327.4 MB, free: 216 kB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000375/0.3166, allocations: 162.8 kB / 327.6 MB, free: 104 kB / 254.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001152/0.3167, allocations: 86.45 kB / 327.7 MB, free: 48 kB / 254.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001812/0.3169, allocations: 94.28 kB / 327.8 MB, free: 15.97 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.696e-05/0.317, allocations: 23.06 kB / 327.8 MB, free: 15.97 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.843e-05/0.3171, allocations: 33.45 kB / 327.8 MB, free: 15.96 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.533e-05/0.3172, allocations: 62.08 kB / 327.9 MB, free: 15.91 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001092/0.3173, allocations: 91 kB / 328 MB, free: 15.84 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003026/0.3176, allocations: 224.1 kB / 328.2 MB, free: 15.68 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.3176, allocations: 0 / 328.2 MB, free: 15.68 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.3176, allocations: 1.25 kB / 328.2 MB, free: 15.68 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.134e-06/0.3176, allocations: 0 / 328.2 MB, free: 15.68 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.0007724/0.3184, allocations: 480.3 kB / 328.6 MB, free: 15.21 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.3185, allocations: 9.844 kB / 328.7 MB, free: 15.21 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.925e-05/0.3185, allocations: 27.72 kB / 328.7 MB, free: 15.2 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002438/0.3188, allocations: 234.1 kB / 328.9 MB, free: 14.95 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.116e-05/0.3188, allocations: 25.38 kB / 328.9 MB, free: 14.94 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.738e-05/0.3189, allocations: 20.31 kB / 329 MB, free: 14.93 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00046/0.3193, allocations: 242.6 kB / 329.2 MB, free: 14.77 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.3194, allocations: 5.375 kB / 329.2 MB, free: 14.77 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.949e-05/0.3194, allocations: 13.22 kB / 329.2 MB, free: 14.76 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.285e-05/0.3194, allocations: 5.969 kB / 329.2 MB, free: 14.76 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003201/0.3197, allocations: 163.4 kB / 329.4 MB, free: 14.68 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001257/0.321, allocations: 0.7 MB / 330.1 MB, free: 14.05 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003646/0.3214, allocations: 176 kB / 330.3 MB, free: 13.95 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001437/0.3215, allocations: 76.89 kB / 330.3 MB, free: 13.91 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.731e-05/0.3216, allocations: 2.094 kB / 330.3 MB, free: 13.91 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003194/0.3219, allocations: 119.3 kB / 330.4 MB, free: 13.82 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 3.717e-06/0.3219, allocations: 0 / 330.4 MB, free: 13.82 MB / 270.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005031/0.3224, allocations: 224.6 kB / 330.7 MB, free: 13.7 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.944e-05/0.3225, allocations: 59.14 kB / 330.7 MB, free: 13.63 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001289/0.3226, allocations: 145.3 kB / 330.9 MB, free: 13.5 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.538e-05/0.3227, allocations: 40.97 kB / 330.9 MB, free: 13.46 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001128/0.3228, allocations: 126.3 kB / 331 MB, free: 13.34 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.033e-05/0.3229, allocations: 68 kB / 331.1 MB, free: 13.28 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001123/0.323, allocations: 70.86 kB / 331.2 MB, free: 13.23 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.3231, allocations: 331.3 kB / 331.5 MB, free: 12.91 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001443/0.3233, allocations: 65.97 kB / 331.6 MB, free: 12.88 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002027/0.3235, allocations: 136.3 kB / 331.7 MB, free: 12.76 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002965/0.3238, allocations: 178.8 kB / 331.9 MB, free: 12.63 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.3238, allocations: 0 / 331.9 MB, free: 12.63 MB / 270.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004384/0.3243, allocations: 247.4 kB / 332.1 MB, free: 12.5 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.3243, allocations: 5.781 kB / 332.1 MB, free: 12.5 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.3243, allocations: 1.438 kB / 332.1 MB, free: 12.5 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.973e-05/0.3243, allocations: 4.469 kB / 332.1 MB, free: 12.5 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001492/0.3245, allocations: 27.55 kB / 332.1 MB, free: 12.49 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.714e-05/0.3245, allocations: 6.797 kB / 332.1 MB, free: 12.48 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.815e-05/0.3246, allocations: 19.88 kB / 332.2 MB, free: 12.47 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.384e-05/0.3247, allocations: 13.16 kB / 332.2 MB, free: 12.47 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.0002038/0.3249, allocations: 164 kB / 332.3 MB, free: 12.32 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.419e-05/0.3249, allocations: 21.16 kB / 332.4 MB, free: 12.3 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004834/0.3254, allocations: 193.4 kB / 332.5 MB, free: 12.19 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/0.3254, allocations: 7.578 kB / 332.6 MB, free: 12.18 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.3255, allocations: 0 / 332.6 MB, free: 12.18 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.3255, allocations: 0 / 332.6 MB, free: 12.18 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008475/0.3263, allocations: 0.561 MB / 333.1 MB, free: 11.71 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.3263, allocations: 4 kB / 333.1 MB, free: 11.71 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.147e-05/0.3264, allocations: 16.59 kB / 333.1 MB, free: 11.7 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.037e-06/0.3264, allocations: 1 kB / 333.1 MB, free: 11.7 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.172e-05/0.3265, allocations: 10.2 kB / 333.1 MB, free: 11.7 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.3265, allocations: 1.188 kB / 333.1 MB, free: 11.7 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.3265, allocations: 7.875 kB / 333.2 MB, free: 11.69 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000345/0.3268, allocations: 278.2 kB / 333.4 MB, free: 11.42 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.57e-05/0.3269, allocations: 92.86 kB / 333.5 MB, free: 11.31 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.132e-05/0.327, allocations: 12 kB / 333.5 MB, free: 11.3 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.828e-05/0.327, allocations: 7.984 kB / 333.5 MB, free: 11.29 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/0.3272, allocations: 27.86 kB / 333.6 MB, free: 11.26 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.828e-05/0.3272, allocations: 15.92 kB / 333.6 MB, free: 11.25 MB / 270.1 MB Notification: Performance of sorting global known variables: time 6.967e-05/0.3273, allocations: 95.27 kB / 333.7 MB, free: 11.15 MB / 270.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3273, allocations: 0 / 333.7 MB, free: 11.15 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003179/0.3276, allocations: 43.91 kB / 333.7 MB, free: 11.11 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.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,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.0002134/0.3278, allocations: 115.4 kB / 333.8 MB, free: 10.98 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.000408/0.3282, allocations: 195.7 kB / 334 MB, free: 10.79 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3282, allocations: 4 kB / 334 MB, free: 10.79 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001404/0.3284, allocations: 84.56 kB / 334.1 MB, free: 10.71 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003143/0.3287, allocations: 20 kB / 334.1 MB, free: 10.69 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007974/0.3295, allocations: 333.8 kB / 334.5 MB, free: 10.34 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004887/0.33, allocations: 0.7362 MB / 335.2 MB, free: 9.578 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 7.824e-05/0.3301, allocations: 17.95 kB / 335.2 MB, free: 9.562 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.264e-05/0.3302, allocations: 31.42 kB / 335.2 MB, free: 9.531 MB / 270.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3302, allocations: 0 / 335.2 MB, free: 9.531 MB / 270.1 MB Notification: Performance of Templates: time 0.005966/0.3362, allocations: 1.881 MB / 337.1 MB, free: 7.656 MB / 270.1 MB make -j1 -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.1_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1)