Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.007837/0.007837, allocations: 165.5 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.26/1.26, allocations: 170.8 MB / 186.6 MB, free: 1.141 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001534/0.001534, allocations: 111.3 kB / 226.2 MB, free: 10.11 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003026/0.0003026, allocations: 8 kB / 274.1 MB, free: 10.1 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2262/0.2265, allocations: 38.76 MB / 312.9 MB, free: 38.69 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0933/0.3199, allocations: 66.2 MB / 379.1 MB, free: 8.344 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002394/0.3202, allocations: 67.97 kB / 379.1 MB, free: 8.277 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007987/0.3281, allocations: 2.953 MB / 382.1 MB, free: 5.309 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.926e-06/0.3282, allocations: 0 / 382.1 MB, free: 5.309 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.529e-05/0.3282, allocations: 4.875 kB / 382.1 MB, free: 5.305 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0006664/0.3289, allocations: 455.7 kB / 382.5 MB, free: 4.812 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.142e-05/0.329, allocations: 11.97 kB / 382.6 MB, free: 4.801 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.518e-05/0.3291, allocations: 23.72 kB / 382.6 MB, free: 4.777 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003495/0.3294, allocations: 215 kB / 382.8 MB, free: 4.527 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.991e-05/0.3295, allocations: 20.56 kB / 382.8 MB, free: 4.508 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.565e-05/0.3295, allocations: 24 kB / 382.8 MB, free: 4.484 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004485/0.33, allocations: 273.9 kB / 383.1 MB, free: 4.195 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.33, allocations: 0 / 383.1 MB, free: 4.195 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.691e-05/0.3301, allocations: 12 kB / 383.1 MB, free: 4.184 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.647e-06/0.3301, allocations: 4 kB / 383.1 MB, free: 4.18 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003055/0.3304, allocations: 165.6 kB / 383.3 MB, free: 4.02 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001116/0.3315, allocations: 0.9601 MB / 384.2 MB, free: 2.984 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002751/0.3318, allocations: 155.3 kB / 384.4 MB, free: 2.824 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.833e-05/0.3318, allocations: 4.188 kB / 384.4 MB, free: 2.82 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001824/0.332, allocations: 115.4 kB / 384.5 MB, free: 2.695 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 1.452e-06/0.332, allocations: 4 kB / 384.5 MB, free: 2.691 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004142/0.3324, allocations: 207 kB / 384.7 MB, free: 2.484 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.581e-05/0.3325, allocations: 65.44 kB / 384.8 MB, free: 2.41 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001194/0.3326, allocations: 148.3 kB / 384.9 MB, free: 2.262 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.166e-05/0.3327, allocations: 33.7 kB / 385 MB, free: 2.223 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.005e-05/0.3328, allocations: 148.4 kB / 385.1 MB, free: 2.07 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.823e-05/0.3328, allocations: 59.25 kB / 385.2 MB, free: 2.012 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.248e-05/0.3328, allocations: 8 kB / 385.2 MB, free: 2.004 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.333, allocations: 322.8 kB / 385.5 MB, free: 1.68 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001098/0.3331, allocations: 68.62 kB / 385.6 MB, free: 1.609 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001484/0.3332, allocations: 125.9 kB / 385.7 MB, free: 1.457 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001248/0.3334, allocations: 83.62 kB / 385.8 MB, free: 1.379 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.3334, allocations: 0 / 385.8 MB, free: 1.379 MB / 282.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003557/0.3338, allocations: 241.5 kB / 386 MB, free: 1.137 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.3338, allocations: 12.03 kB / 386 MB, free: 1.125 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.3338, allocations: 0 / 386 MB, free: 1.125 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.3338, allocations: 4 kB / 386 MB, free: 1.121 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000137/0.334, allocations: 39.86 kB / 386 MB, free: 1.082 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.177e-05/0.334, allocations: 11.94 kB / 386.1 MB, free: 1.07 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.934e-05/0.3341, allocations: 15.91 kB / 386.1 MB, free: 1.055 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.68e-05/0.3341, allocations: 16 kB / 386.1 MB, free: 1.039 MB / 282.7 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,$whenCondition2,$whenCondition1,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,greaterEqual.y,stateGraphRoot.activeSteps,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001399/0.3343, allocations: 160.3 kB / 386.2 MB, free: 0.875 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.825e-05/0.3343, allocations: 7.906 kB / 386.3 MB, free: 0.8672 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003535/0.3346, allocations: 191.3 kB / 386.4 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.3347, allocations: 4 kB / 386.4 MB, free: 0.6758 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.3347, allocations: 3.938 kB / 386.4 MB, free: 0.6719 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.3347, allocations: 7.938 kB / 386.5 MB, free: 0.6641 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007092/0.3354, allocations: 0.5849 MB / 387 MB, free: 20 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.3354, allocations: 3.984 kB / 387 MB, free: 16 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.785e-05/0.3355, allocations: 8 kB / 387.1 MB, free: 8 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.3355, allocations: 4 kB / 387.1 MB, free: 4 kB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.66e-05/0.3355, allocations: 4.375 kB / 387.1 MB, free: 0 / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.213e-05/0.3355, allocations: 8.016 kB / 387.1 MB, free: 15.99 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.3356, allocations: 8 kB / 387.1 MB, free: 15.98 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003057/0.3359, allocations: 271.6 kB / 387.3 MB, free: 15.7 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.151e-05/0.3359, allocations: 88.95 kB / 387.4 MB, free: 15.59 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.839e-05/0.336, allocations: 15.98 kB / 387.4 MB, free: 15.58 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.562e-05/0.3361, allocations: 8 kB / 387.5 MB, free: 15.57 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.893e-05/0.3362, allocations: 19.92 kB / 387.5 MB, free: 15.55 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.805e-05/0.3362, allocations: 11.98 kB / 387.5 MB, free: 15.54 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.409e-05/0.3362, allocations: 95.27 kB / 387.6 MB, free: 15.45 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3363, allocations: 0 / 387.6 MB, free: 15.45 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002824/0.3365, allocations: 44 kB / 387.6 MB, free: 15.4 MB / 298.7 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.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.enableFire,timer.entryTime,greaterEqual.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000173/0.3367, allocations: 118.2 kB / 387.7 MB, free: 15.28 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003116/0.337, allocations: 183.7 kB / 387.9 MB, free: 15.1 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3371, allocations: 0 / 387.9 MB, free: 15.1 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001268/0.3372, allocations: 79.86 kB / 388 MB, free: 15.02 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000194/0.3374, allocations: 15.98 kB / 388 MB, free: 15 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006393/0.338, allocations: 395 kB / 388.4 MB, free: 14.6 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003575/0.3384, allocations: 0.7367 MB / 389.1 MB, free: 13.84 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.65e-05/0.3385, allocations: 25.95 kB / 389.2 MB, free: 13.81 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.577e-05/0.3386, allocations: 23.42 kB / 389.2 MB, free: 13.79 MB / 298.7 MB Notification: Performance of SimCode: time 3.41e-07/0.3386, allocations: 0 / 389.2 MB, free: 13.79 MB / 298.7 MB Notification: Performance of Templates: time 0.004431/0.343, allocations: 1.649 MB / 390.8 MB, free: 12.16 MB / 298.7 MB make -j1 -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1)