Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.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_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.0008837/0.0008838, allocations: 171.3 kB / 7.638 MB, free: 1.418 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.239/1.239, allocations: 170.7 MB / 178.7 MB, free: 15.65 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.001849/0.00185, allocations: 115.4 kB / 218 MB, free: 8.406 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.145e-05/1.147e-05, allocations: 4 kB / 262.2 MB, free: 26.41 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06403/0.06406, allocations: 38.77 MB / 301 MB, free: 3.652 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2432/0.3073, allocations: 65.47 MB / 366.4 MB, free: 2.941 MB / 250.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001798/0.3075, allocations: 66.06 kB / 366.5 MB, free: 2.91 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006134/0.3137, allocations: 2.887 MB / 369.4 MB, free: 460 kB / 250.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.3137, allocations: 0 / 369.4 MB, free: 460 kB / 250.7 MB Notification: Performance of Transformations before backend: time 1.027e-05/0.3137, allocations: 4 kB / 369.4 MB, free: 456 kB / 250.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.00039/0.3141, allocations: 430.1 kB / 369.8 MB, free: 0 / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.667e-05/0.3142, allocations: 12.08 kB / 369.8 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.684e-05/0.3143, allocations: 23.72 kB / 369.8 MB, free: 15.96 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002202/0.3145, allocations: 215.6 kB / 370.1 MB, free: 15.73 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.772e-05/0.3145, allocations: 15.98 kB / 370.1 MB, free: 15.71 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.144e-05/0.3146, allocations: 21.64 kB / 370.1 MB, free: 15.7 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002662/0.3148, allocations: 149.1 kB / 370.2 MB, free: 15.6 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003376/0.3152, allocations: 225 kB / 370.5 MB, free: 15.41 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.3152, allocations: 4 kB / 370.5 MB, free: 15.4 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.934e-05/0.3152, allocations: 0 / 370.5 MB, free: 15.4 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.3152, allocations: 4 kB / 370.5 MB, free: 15.4 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009505/0.3162, allocations: 0.8863 MB / 371.3 MB, free: 14.56 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002212/0.3164, allocations: 138.8 kB / 371.5 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.769e-05/0.3165, allocations: 68.48 kB / 371.5 MB, free: 14.41 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.179e-05/0.3166, allocations: 8.125 kB / 371.6 MB, free: 14.4 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001602/0.3167, allocations: 106 kB / 371.7 MB, free: 14.31 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 1.653e-06/0.3167, allocations: 0 / 371.7 MB, free: 14.31 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.000277/0.317, allocations: 146.2 kB / 371.8 MB, free: 14.18 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.627e-05/0.3171, allocations: 59.34 kB / 371.9 MB, free: 14.12 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001174/0.3172, allocations: 141.7 kB / 372 MB, free: 13.99 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.968e-05/0.3172, allocations: 37.69 kB / 372 MB, free: 13.95 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.732e-05/0.3173, allocations: 140.4 kB / 372.2 MB, free: 13.81 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.112e-05/0.3174, allocations: 50.45 kB / 372.2 MB, free: 13.77 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.079e-05/0.3174, allocations: 0 / 372.2 MB, free: 13.77 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.3175, allocations: 330.8 kB / 372.5 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.438e-05/0.3176, allocations: 51.97 kB / 372.6 MB, free: 13.41 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001304/0.3177, allocations: 127.6 kB / 372.7 MB, free: 13.28 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.055e-05/0.3178, allocations: 58.72 kB / 372.8 MB, free: 13.24 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3179, allocations: 4 kB / 372.8 MB, free: 13.24 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002955/0.3182, allocations: 214.3 kB / 373 MB, free: 13.06 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.3182, allocations: 11.91 kB / 373 MB, free: 13.05 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.3182, allocations: 4 kB / 373 MB, free: 13.04 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.6e-05/0.3182, allocations: 7.938 kB / 373 MB, free: 13.04 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001363/0.3184, allocations: 27.92 kB / 373 MB, free: 13.01 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.3184, allocations: 8.219 kB / 373.1 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.272e-05/0.3185, allocations: 23.83 kB / 373.1 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.925e-05/0.3185, allocations: 15.89 kB / 373.1 MB, free: 12.96 MB / 266.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,SetBoolean1.y,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete 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 8.757e-05/0.3186, allocations: 125.8 kB / 373.2 MB, free: 12.84 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.151e-05/0.3186, allocations: 15.91 kB / 373.2 MB, free: 12.82 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003078/0.319, allocations: 166.2 kB / 373.4 MB, free: 12.69 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.319, allocations: 4 kB / 373.4 MB, free: 12.69 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.319, allocations: 7.984 kB / 373.4 MB, free: 12.68 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.319, allocations: 0 / 373.4 MB, free: 12.68 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006347/0.3196, allocations: 0.523 MB / 373.9 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.3197, allocations: 0 / 373.9 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.295e-05/0.3197, allocations: 15.94 kB / 373.9 MB, free: 12.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.3197, allocations: 3.984 kB / 373.9 MB, free: 12.16 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.335e-05/0.3198, allocations: 4 kB / 373.9 MB, free: 12.15 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.3198, allocations: 4 kB / 374 MB, free: 12.15 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.109e-05/0.3198, allocations: 3.953 kB / 374 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002611/0.3201, allocations: 248.3 kB / 374.2 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.204e-05/0.3201, allocations: 89 kB / 374.3 MB, free: 11.81 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.574e-05/0.3202, allocations: 3.375 kB / 374.3 MB, free: 11.81 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.432e-05/0.3202, allocations: 4 kB / 374.3 MB, free: 11.8 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.239e-05/0.3203, allocations: 19.97 kB / 374.3 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.859e-05/0.3203, allocations: 19 kB / 374.3 MB, free: 11.77 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.028e-05/0.3204, allocations: 90.89 kB / 374.4 MB, free: 11.69 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3204, allocations: 3.938 kB / 374.4 MB, free: 11.68 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002826/0.3207, allocations: 32 kB / 374.5 MB, free: 11.65 MB / 266.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,SetBoolean1.y,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * 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.0001477/0.3209, allocations: 103.2 kB / 374.6 MB, free: 11.54 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002611/0.3211, allocations: 157.5 kB / 374.7 MB, free: 11.43 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3211, allocations: 0.5625 kB / 374.7 MB, free: 11.43 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001039/0.3212, allocations: 80.12 kB / 374.8 MB, free: 11.37 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000197/0.3215, allocations: 20.59 kB / 374.8 MB, free: 11.36 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004178/0.3219, allocations: 220.3 kB / 375 MB, free: 11.14 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003099/0.3222, allocations: 0.7465 MB / 375.8 MB, free: 10.37 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.652e-05/0.3223, allocations: 30.05 kB / 375.8 MB, free: 10.34 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.163e-05/0.3224, allocations: 19.44 kB / 375.8 MB, free: 10.32 MB / 266.7 MB Notification: Performance of SimCode: time 2.71e-07/0.3224, allocations: 0 / 375.8 MB, free: 10.32 MB / 266.7 MB Notification: Performance of Templates: time 0.004309/0.3267, allocations: 1.603 MB / 377.4 MB, free: 8.73 MB / 266.7 MB make -j1 -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1)