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.00122/0.00122, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.0026/0.0026, allocations: 191 kB / 16.25 MB, free: 6.629 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.631/1.631, allocations: 205.1 MB / 222.1 MB, free: 4.723 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.001535/0.001536, allocations: 44.41 kB / 278.2 MB, free: 12.7 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3117/0.3132, allocations: 46.64 MB / 324.8 MB, free: 2.047 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002847/0.3161, allocations: 1.558 MB / 326.4 MB, free: 0.8164 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005544/0.3167, allocations: 266.7 kB / 326.7 MB, free: 0.6055 MB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.92e-05/0.3168, allocations: 7.438 kB / 326.7 MB, free: 0.6016 MB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00013/0.3169, allocations: 11.31 kB / 326.7 MB, free: 0.5938 MB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 4.698e-05/0.317, allocations: 9.016 kB / 326.7 MB, free: 0.5859 MB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003666/0.3174, allocations: 94.28 kB / 326.8 MB, free: 0.5117 MB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002665/0.3176, allocations: 257.2 kB / 327 MB, free: 372 kB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000296/0.3179, allocations: 163 kB / 327.2 MB, free: 260 kB / 254.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001009/0.318, allocations: 91.31 kB / 327.3 MB, free: 200 kB / 254.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000116/0.3182, allocations: 98.05 kB / 327.4 MB, free: 120 kB / 254.1 MB Notification: Performance of NFPackage.collectConstants: time 4.111e-05/0.3182, allocations: 25.94 kB / 327.4 MB, free: 116 kB / 254.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.543e-05/0.3183, allocations: 30.25 kB / 327.4 MB, free: 112 kB / 254.1 MB Notification: Performance of NFScalarize.scalarize: time 5.397e-05/0.3184, allocations: 57.75 kB / 327.5 MB, free: 64 kB / 254.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001272/0.3185, allocations: 96.05 kB / 327.6 MB, free: 15.98 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002697/0.3188, allocations: 232.3 kB / 327.8 MB, free: 15.81 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.257e-06/0.3188, allocations: 0 / 327.8 MB, free: 15.81 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3188, allocations: 0 / 327.8 MB, free: 15.81 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.073e-06/0.3188, allocations: 0 / 327.8 MB, free: 15.81 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.0006887/0.3195, allocations: 485.6 kB / 328.3 MB, free: 15.35 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.3196, allocations: 8.938 kB / 328.3 MB, free: 15.35 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.871e-05/0.3196, allocations: 23.69 kB / 328.3 MB, free: 15.34 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002567/0.3199, allocations: 231.4 kB / 328.5 MB, free: 15.09 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.891e-05/0.3199, allocations: 19.22 kB / 328.6 MB, free: 15.08 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.18e-05/0.32, allocations: 26.28 kB / 328.6 MB, free: 15.07 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004544/0.3204, allocations: 242.5 kB / 328.8 MB, free: 14.91 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.3205, allocations: 192 / 328.8 MB, free: 14.91 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.694e-05/0.3205, allocations: 10.22 kB / 328.8 MB, free: 14.91 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.949e-06/0.3205, allocations: 9.156 kB / 328.8 MB, free: 14.9 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003146/0.3208, allocations: 163.3 kB / 329 MB, free: 14.82 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001219/0.3221, allocations: 0.7041 MB / 329.7 MB, free: 14.19 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004263/0.3225, allocations: 168.7 kB / 329.9 MB, free: 14.1 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001518/0.3227, allocations: 84.27 kB / 329.9 MB, free: 14.05 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.918e-05/0.3227, allocations: 2.062 kB / 330 MB, free: 14.05 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003473/0.3231, allocations: 123.4 kB / 330.1 MB, free: 13.95 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 1.683e-06/0.3231, allocations: 3.938 kB / 330.1 MB, free: 13.95 MB / 270.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005253/0.3236, allocations: 215.7 kB / 330.3 MB, free: 13.84 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.449e-05/0.3237, allocations: 63.86 kB / 330.3 MB, free: 13.77 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001571/0.3238, allocations: 141 kB / 330.5 MB, free: 13.64 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.011e-05/0.3239, allocations: 38.52 kB / 330.5 MB, free: 13.6 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001219/0.324, allocations: 129.3 kB / 330.6 MB, free: 13.48 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.365e-05/0.3241, allocations: 68.09 kB / 330.7 MB, free: 13.42 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001354/0.3243, allocations: 74.95 kB / 330.8 MB, free: 13.37 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.3244, allocations: 330.7 kB / 331.1 MB, free: 13.04 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001239/0.3245, allocations: 62.78 kB / 331.2 MB, free: 13.02 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001543/0.3247, allocations: 123.8 kB / 331.3 MB, free: 12.91 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000257/0.325, allocations: 178.9 kB / 331.5 MB, free: 12.78 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.325, allocations: 0 / 331.5 MB, free: 12.78 MB / 270.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004161/0.3254, allocations: 247.8 kB / 331.7 MB, free: 12.65 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.3254, allocations: 5.594 kB / 331.7 MB, free: 12.65 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.3255, allocations: 1.312 kB / 331.7 MB, free: 12.65 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.916e-05/0.3255, allocations: 3.875 kB / 331.7 MB, free: 12.65 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001533/0.3256, allocations: 31.52 kB / 331.8 MB, free: 12.64 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.546e-05/0.3257, allocations: 11.48 kB / 331.8 MB, free: 12.63 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.768e-05/0.3258, allocations: 19.5 kB / 331.8 MB, free: 12.62 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.004e-05/0.3258, allocations: 17.44 kB / 331.8 MB, free: 12.61 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.000158/0.326, allocations: 160 kB / 332 MB, free: 12.46 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.729e-05/0.326, allocations: 17.56 kB / 332 MB, free: 12.45 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003826/0.3264, allocations: 201.8 kB / 332.2 MB, free: 12.33 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.473e-06/0.3264, allocations: 2.906 kB / 332.2 MB, free: 12.33 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/0.3264, allocations: 3.984 kB / 332.2 MB, free: 12.32 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.3264, allocations: 0 / 332.2 MB, free: 12.32 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008094/0.3273, allocations: 0.5695 MB / 332.7 MB, free: 11.84 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.3273, allocations: 0 / 332.7 MB, free: 11.84 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.074e-05/0.3274, allocations: 16.81 kB / 332.8 MB, free: 11.84 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.3274, allocations: 1.062 kB / 332.8 MB, free: 11.84 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.024e-05/0.3274, allocations: 6.297 kB / 332.8 MB, free: 11.84 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.375e-06/0.3274, allocations: 5 kB / 332.8 MB, free: 11.83 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.3274, allocations: 3.938 kB / 332.8 MB, free: 11.83 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003417/0.3278, allocations: 284.1 kB / 333.1 MB, free: 11.62 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.015e-05/0.3278, allocations: 92.86 kB / 333.1 MB, free: 11.51 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.46e-05/0.3279, allocations: 7.938 kB / 333.2 MB, free: 11.5 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.811e-05/0.328, allocations: 11.98 kB / 333.2 MB, free: 11.49 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.481e-05/0.328, allocations: 23.92 kB / 333.2 MB, free: 11.46 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.66e-05/0.3281, allocations: 7.984 kB / 333.2 MB, free: 11.46 MB / 270.1 MB Notification: Performance of sorting global known variables: time 5.973e-05/0.3281, allocations: 91.77 kB / 333.3 MB, free: 11.37 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3281, allocations: 4 kB / 333.3 MB, free: 11.36 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002966/0.3284, allocations: 43.91 kB / 333.3 MB, free: 11.32 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.0001731/0.3286, allocations: 119.1 kB / 333.4 MB, free: 11.19 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003878/0.329, allocations: 195.7 kB / 333.6 MB, free: 11 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.329, allocations: 0 / 333.6 MB, free: 11 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001312/0.3292, allocations: 84.56 kB / 333.7 MB, free: 10.92 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002949/0.3295, allocations: 20 kB / 333.7 MB, free: 10.9 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00063/0.3301, allocations: 397.8 kB / 334.1 MB, free: 10.49 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000307/0.3304, allocations: 0.7324 MB / 334.9 MB, free: 9.73 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 8.657e-05/0.3305, allocations: 25.95 kB / 334.9 MB, free: 9.707 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.884e-05/0.3306, allocations: 23.42 kB / 334.9 MB, free: 9.684 MB / 270.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3306, allocations: 0 / 334.9 MB, free: 9.684 MB / 270.1 MB Notification: Performance of Templates: time 0.004899/0.3355, allocations: 1.832 MB / 336.7 MB, free: 7.855 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)