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.00134/0.00134, 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.002011/0.002011, allocations: 190.7 kB / 16.25 MB, free: 6.578 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.642/1.642, allocations: 205.1 MB / 222.1 MB, free: 4.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.001511/0.001511, allocations: 47.94 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2983/0.2998, allocations: 46.63 MB / 324.8 MB, free: 1.848 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003051/0.3029, allocations: 1.744 MB / 326.6 MB, free: 484 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006379/0.3036, allocations: 276.1 kB / 326.9 MB, free: 260 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.993e-05/0.3037, allocations: 11.31 kB / 326.9 MB, free: 252 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001492/0.3039, allocations: 15.23 kB / 326.9 MB, free: 240 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 4.781e-05/0.3039, allocations: 9.031 kB / 326.9 MB, free: 232 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003846/0.3043, allocations: 104.1 kB / 327 MB, free: 148 kB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003308/0.3047, allocations: 272.3 kB / 327.3 MB, free: 15.98 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003324/0.305, allocations: 192.6 kB / 327.4 MB, free: 15.86 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001072/0.3051, allocations: 92.25 kB / 327.5 MB, free: 15.8 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001311/0.3053, allocations: 91.52 kB / 327.6 MB, free: 15.73 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.602e-05/0.3053, allocations: 23.41 kB / 327.6 MB, free: 15.73 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.11e-05/0.3054, allocations: 39.66 kB / 327.7 MB, free: 15.72 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.656e-05/0.3055, allocations: 57.97 kB / 327.7 MB, free: 15.67 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001012/0.3056, allocations: 99.75 kB / 327.8 MB, free: 15.6 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002776/0.3059, allocations: 246.1 kB / 328.1 MB, free: 15.41 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.3059, allocations: 0 / 328.1 MB, free: 15.41 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3059, allocations: 3.938 kB / 328.1 MB, free: 15.41 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.875e-06/0.3059, allocations: 0 / 328.1 MB, free: 15.41 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.0007386/0.3067, allocations: 490 kB / 328.6 MB, free: 14.94 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.3067, allocations: 13.25 kB / 328.6 MB, free: 14.93 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.967e-05/0.3068, allocations: 25.06 kB / 328.6 MB, free: 14.92 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002654/0.307, allocations: 223.4 kB / 328.8 MB, free: 14.68 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.683e-05/0.3071, allocations: 25.34 kB / 328.8 MB, free: 14.67 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.289e-05/0.3072, allocations: 26.69 kB / 328.9 MB, free: 14.66 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000489/0.3076, allocations: 274.7 kB / 329.1 MB, free: 14.47 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.358e-05/0.3077, allocations: 1.531 kB / 329.1 MB, free: 14.47 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.421e-05/0.3077, allocations: 22.14 kB / 329.2 MB, free: 14.45 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/0.3077, allocations: 6.781 kB / 329.2 MB, free: 14.45 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003217/0.3081, allocations: 161.4 kB / 329.3 MB, free: 14.38 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001244/0.3093, allocations: 0.9695 MB / 330.3 MB, free: 13.48 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002985/0.3096, allocations: 157.4 kB / 330.4 MB, free: 13.39 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001239/0.3097, allocations: 73.8 kB / 330.5 MB, free: 13.35 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.322e-05/0.3098, allocations: 9.734 kB / 330.5 MB, free: 13.34 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002677/0.3101, allocations: 105.8 kB / 330.6 MB, free: 13.26 MB / 270.1 MB Notification: Performance of pre-optimization done (n=23): time 1.683e-06/0.3101, allocations: 0 / 330.6 MB, free: 13.26 MB / 270.1 MB Notification: Performance of matching and sorting (n=23): time 0.0005048/0.3106, allocations: 216.2 kB / 330.8 MB, free: 13.14 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.27e-05/0.3106, allocations: 63.91 kB / 330.9 MB, free: 13.07 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001387/0.3108, allocations: 148.6 kB / 331.1 MB, free: 12.94 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.69e-05/0.3108, allocations: 41.94 kB / 331.1 MB, free: 12.9 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001143/0.3109, allocations: 143.1 kB / 331.2 MB, free: 12.77 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.299e-05/0.311, allocations: 60.67 kB / 331.3 MB, free: 12.71 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/0.3111, allocations: 79.53 kB / 331.4 MB, free: 12.66 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.3113, allocations: 330.4 kB / 331.7 MB, free: 12.33 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001291/0.3114, allocations: 63.41 kB / 331.8 MB, free: 12.3 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001815/0.3116, allocations: 146.6 kB / 331.9 MB, free: 12.18 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002757/0.3119, allocations: 188.4 kB / 332.1 MB, free: 12.03 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.3119, allocations: 5.375 kB / 332.1 MB, free: 12.02 MB / 270.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000413/0.3123, allocations: 250.7 kB / 332.3 MB, free: 11.89 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.485e-05/0.3123, allocations: 5.625 kB / 332.3 MB, free: 11.89 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.3124, allocations: 2.469 kB / 332.3 MB, free: 11.89 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.804e-05/0.3124, allocations: 4.094 kB / 332.3 MB, free: 11.89 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001531/0.3125, allocations: 34.7 kB / 332.4 MB, free: 11.88 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.709e-05/0.3126, allocations: 11.08 kB / 332.4 MB, free: 11.87 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001008/0.3127, allocations: 33.16 kB / 332.4 MB, free: 11.85 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.279e-05/0.3127, allocations: 14.38 kB / 332.4 MB, free: 11.84 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.000187/0.3129, allocations: 156.9 kB / 332.6 MB, free: 11.7 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.659e-05/0.3129, allocations: 14.81 kB / 332.6 MB, free: 11.69 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003677/0.3133, allocations: 184.3 kB / 332.8 MB, free: 11.58 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.99e-06/0.3133, allocations: 6.344 kB / 332.8 MB, free: 11.58 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.3133, allocations: 0 / 332.8 MB, free: 11.58 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.3134, allocations: 5.172 kB / 332.8 MB, free: 11.57 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007878/0.3141, allocations: 0.5934 MB / 333.4 MB, free: 11.06 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.74e-06/0.3142, allocations: 5.078 kB / 333.4 MB, free: 11.06 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.272e-05/0.3142, allocations: 14.88 kB / 333.4 MB, free: 11.05 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.698e-06/0.3143, allocations: 4.969 kB / 333.4 MB, free: 11.05 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.631e-05/0.3143, allocations: 6.125 kB / 333.4 MB, free: 11.05 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.3143, allocations: 5.016 kB / 333.4 MB, free: 11.04 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3143, allocations: 0 / 333.4 MB, free: 11.04 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003445/0.3146, allocations: 274.3 kB / 333.7 MB, free: 10.83 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.897e-05/0.3147, allocations: 96.89 kB / 333.8 MB, free: 10.71 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.788e-05/0.3147, allocations: 7.984 kB / 333.8 MB, free: 10.71 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.099e-05/0.3148, allocations: 4 kB / 333.8 MB, free: 10.7 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.488e-05/0.3149, allocations: 23.95 kB / 333.8 MB, free: 10.68 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.524e-05/0.3149, allocations: 8 kB / 333.8 MB, free: 10.67 MB / 270.1 MB Notification: Performance of sorting global known variables: time 5.649e-05/0.315, allocations: 103.8 kB / 333.9 MB, free: 10.57 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.315, allocations: 0 / 333.9 MB, free: 10.57 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002928/0.3153, allocations: 51.84 kB / 334 MB, free: 10.52 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 (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.0001566/0.3155, allocations: 123.1 kB / 334.1 MB, free: 10.39 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003672/0.3158, allocations: 183.7 kB / 334.3 MB, free: 10.21 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3159, allocations: 3.938 kB / 334.3 MB, free: 10.21 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001234/0.316, allocations: 83.91 kB / 334.4 MB, free: 10.12 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002996/0.3163, allocations: 24.48 kB / 334.4 MB, free: 10.1 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006631/0.317, allocations: 413.8 kB / 334.8 MB, free: 9.668 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003112/0.3173, allocations: 0.7439 MB / 335.5 MB, free: 8.898 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 8.985e-05/0.3174, allocations: 25.94 kB / 335.6 MB, free: 8.871 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.827e-05/0.3174, allocations: 23.44 kB / 335.6 MB, free: 8.848 MB / 270.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3175, allocations: 3.938 kB / 335.6 MB, free: 8.844 MB / 270.1 MB Notification: Performance of Templates: time 0.005058/0.3225, allocations: 1.812 MB / 337.4 MB, free: 7.035 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)