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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00211/0.002109, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002525/0.002525, allocations: 199.8 kB / 16.26 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.162/2.162, 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.001387/0.001387, allocations: 47.92 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2921/0.2935, allocations: 46.62 MB / 324.8 MB, free: 1.941 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003485/0.297, allocations: 1.78 MB / 326.6 MB, free: 0.5391 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.000764/0.2978, allocations: 280.5 kB / 326.9 MB, free: 324 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002004/0.298, allocations: 3.594 kB / 326.9 MB, free: 324 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001677/0.2982, allocations: 22.48 kB / 326.9 MB, free: 304 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 8.62e-05/0.2983, allocations: 14.58 kB / 326.9 MB, free: 292 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000475/0.2988, allocations: 97.73 kB / 327 MB, free: 212 kB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003612/0.2992, allocations: 268.9 kB / 327.3 MB, free: 52 kB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004024/0.2996, allocations: 181.4 kB / 327.5 MB, free: 15.94 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001346/0.2997, allocations: 84.22 kB / 327.5 MB, free: 15.89 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001793/0.2999, allocations: 94.69 kB / 327.6 MB, free: 15.82 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.307e-05/0.3, allocations: 23.47 kB / 327.7 MB, free: 15.82 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.695e-05/0.3001, allocations: 34.42 kB / 327.7 MB, free: 15.81 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.41e-05/0.3002, allocations: 57.92 kB / 327.7 MB, free: 15.76 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001247/0.3003, allocations: 105.3 kB / 327.8 MB, free: 15.68 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000351/0.3007, allocations: 234.7 kB / 328.1 MB, free: 15.5 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.3007, allocations: 1.344 kB / 328.1 MB, free: 15.5 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.507e-06/0.3007, allocations: 0 / 328.1 MB, free: 15.5 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.748e-06/0.3007, allocations: 3.938 kB / 328.1 MB, free: 15.5 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.0008127/0.3015, allocations: 491.4 kB / 328.6 MB, free: 15.02 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.3016, allocations: 9.781 kB / 328.6 MB, free: 15.02 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.278e-05/0.3017, allocations: 25.06 kB / 328.6 MB, free: 15.01 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000323/0.302, allocations: 235.4 kB / 328.8 MB, free: 14.76 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.61e-05/0.3021, allocations: 27.97 kB / 328.9 MB, free: 14.74 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.652e-05/0.3021, allocations: 26.94 kB / 328.9 MB, free: 14.73 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005063/0.3026, allocations: 271.7 kB / 329.1 MB, free: 14.54 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.3026, allocations: 192 / 329.1 MB, free: 14.54 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.018e-05/0.3027, allocations: 14.48 kB / 329.2 MB, free: 14.53 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.193e-05/0.3027, allocations: 6.531 kB / 329.2 MB, free: 14.53 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003649/0.3031, allocations: 166 kB / 329.3 MB, free: 14.45 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001325/0.3044, allocations: 0.9729 MB / 330.3 MB, free: 13.55 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003043/0.3047, allocations: 159.8 kB / 330.5 MB, free: 13.46 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001413/0.3049, allocations: 77.42 kB / 330.5 MB, free: 13.41 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.543e-05/0.3049, allocations: 3 kB / 330.5 MB, free: 13.41 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002688/0.3052, allocations: 105.1 kB / 330.6 MB, free: 13.33 MB / 270.1 MB Notification: Performance of pre-optimization done (n=23): time 3.567e-06/0.3052, allocations: 1.594 kB / 330.6 MB, free: 13.33 MB / 270.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004729/0.3057, allocations: 218.8 kB / 330.9 MB, free: 13.21 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.831e-05/0.3057, allocations: 54.75 kB / 330.9 MB, free: 13.15 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001502/0.3059, allocations: 152.2 kB / 331.1 MB, free: 13.02 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.381e-05/0.3059, allocations: 38.02 kB / 331.1 MB, free: 12.98 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.3061, allocations: 146.5 kB / 331.2 MB, free: 12.84 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.264e-05/0.3061, allocations: 60.12 kB / 331.3 MB, free: 12.79 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001181/0.3062, allocations: 77.83 kB / 331.4 MB, free: 12.74 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.3064, allocations: 333.2 kB / 331.7 MB, free: 12.41 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001261/0.3065, allocations: 63.22 kB / 331.8 MB, free: 12.38 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002022/0.3067, allocations: 142.3 kB / 331.9 MB, free: 12.25 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002669/0.307, allocations: 188.5 kB / 332.1 MB, free: 12.11 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.307, allocations: 1.062 kB / 332.1 MB, free: 12.11 MB / 270.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004258/0.3074, allocations: 251.6 kB / 332.3 MB, free: 11.97 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.195e-05/0.3075, allocations: 5.5 kB / 332.3 MB, free: 11.97 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.759e-06/0.3075, allocations: 2.688 kB / 332.3 MB, free: 11.97 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.835e-05/0.3075, allocations: 3.531 kB / 332.3 MB, free: 11.97 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001535/0.3077, allocations: 41.88 kB / 332.4 MB, free: 11.95 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.309e-05/0.3077, allocations: 4.219 kB / 332.4 MB, free: 11.95 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001242/0.3078, allocations: 28.23 kB / 332.4 MB, free: 11.93 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.434e-05/0.3079, allocations: 14.94 kB / 332.4 MB, free: 11.93 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.0001859/0.308, allocations: 160.5 kB / 332.6 MB, free: 11.78 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.817e-05/0.3081, allocations: 15.19 kB / 332.6 MB, free: 11.77 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003738/0.3085, allocations: 190.5 kB / 332.8 MB, free: 11.66 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.3085, allocations: 2.188 kB / 332.8 MB, free: 11.66 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.3085, allocations: 5.094 kB / 332.8 MB, free: 11.65 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.3085, allocations: 0 / 332.8 MB, free: 11.65 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008186/0.3093, allocations: 0.5943 MB / 333.4 MB, free: 11.14 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.3093, allocations: 0 / 333.4 MB, free: 11.14 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.111e-05/0.3094, allocations: 18.08 kB / 333.4 MB, free: 11.13 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.714e-06/0.3094, allocations: 3.938 kB / 333.4 MB, free: 11.12 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.704e-05/0.3095, allocations: 4 kB / 333.4 MB, free: 11.12 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.3095, allocations: 7.938 kB / 333.4 MB, free: 11.11 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3095, allocations: 0 / 333.4 MB, free: 11.11 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003084/0.3098, allocations: 267.3 kB / 333.7 MB, free: 10.84 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.81e-05/0.3099, allocations: 104.8 kB / 333.8 MB, free: 10.71 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.74e-05/0.3099, allocations: 4 kB / 333.8 MB, free: 10.71 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.241e-05/0.31, allocations: 11.98 kB / 333.8 MB, free: 10.7 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.769e-05/0.3101, allocations: 15.98 kB / 333.8 MB, free: 10.68 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.694e-05/0.3101, allocations: 7.984 kB / 333.8 MB, free: 10.68 MB / 270.1 MB Notification: Performance of sorting global known variables: time 6.191e-05/0.3102, allocations: 99.77 kB / 333.9 MB, free: 10.58 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3102, allocations: 0 / 333.9 MB, free: 10.58 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003652/0.3106, allocations: 51.84 kB / 334 MB, free: 10.53 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,transition1.enableFire,step.localActive,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.000205/0.3108, allocations: 127.1 kB / 334.1 MB, free: 10.39 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0004697/0.3112, allocations: 195.7 kB / 334.3 MB, free: 10.2 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.3113, allocations: 0 / 334.3 MB, free: 10.2 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001494/0.3114, allocations: 79.84 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.0003656/0.3118, allocations: 27.94 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.001041/0.3128, allocations: 406.5 kB / 334.8 MB, free: 9.676 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005838/0.3134, allocations: 0.74 MB / 335.5 MB, free: 8.91 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001252/0.3136, allocations: 29.94 kB / 335.6 MB, free: 8.883 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.969e-05/0.3137, allocations: 23.44 kB / 335.6 MB, free: 8.859 MB / 270.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3137, allocations: 0 / 335.6 MB, free: 8.859 MB / 270.1 MB Notification: Performance of Templates: time 0.007287/0.321, allocations: 1.797 MB / 337.4 MB, free: 7.066 MB / 270.1 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)