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.001336/0.001336, allocations: 99.31 kB / 15.05 MB, free: 1.105 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.00147/0.00147, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.662/1.662, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.0004991/0.0004994, allocations: 12 kB / 278.9 MB, free: 12.85 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3178/0.3183, allocations: 47.58 MB / 326.4 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.001956/0.3203, allocations: 1.365 MB / 327.8 MB, free: 336 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006784/0.321, allocations: 284.9 kB / 328.1 MB, free: 104 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001075/0.3211, allocations: 4.031 kB / 328.1 MB, free: 104 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001242/0.3213, allocations: 18.47 kB / 328.1 MB, free: 88 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 4.497e-05/0.3213, allocations: 22.59 kB / 328.1 MB, free: 68 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003876/0.3217, allocations: 84.7 kB / 328.2 MB, free: 0 / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003233/0.3221, allocations: 162 kB / 328.4 MB, free: 15.89 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003383/0.3224, allocations: 157.5 kB / 328.5 MB, free: 15.79 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.637e-05/0.3225, allocations: 69.28 kB / 328.6 MB, free: 15.75 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001282/0.3227, allocations: 75.33 kB / 328.7 MB, free: 15.7 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.376e-05/0.3227, allocations: 11.03 kB / 328.7 MB, free: 15.69 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.572e-05/0.3228, allocations: 18.3 kB / 328.7 MB, free: 15.69 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.505e-05/0.3228, allocations: 36.73 kB / 328.7 MB, free: 15.66 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 7.536e-05/0.3229, allocations: 61.95 kB / 328.8 MB, free: 15.61 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002516/0.3232, allocations: 154.4 kB / 328.9 MB, free: 15.49 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3232, allocations: 1.219 kB / 328.9 MB, free: 15.49 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.366e-06/0.3232, allocations: 4 kB / 328.9 MB, free: 15.49 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.967e-06/0.3232, allocations: 0 / 328.9 MB, free: 15.49 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.000916/0.3241, allocations: 450.8 kB / 329.4 MB, free: 15.05 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.373e-05/0.3242, allocations: 9.281 kB / 329.4 MB, free: 15.05 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.392e-05/0.3243, allocations: 23.59 kB / 329.4 MB, free: 15.04 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004271/0.3248, allocations: 234.5 kB / 329.6 MB, free: 14.79 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.378e-05/0.3249, allocations: 19.97 kB / 329.7 MB, free: 14.77 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.921e-05/0.3249, allocations: 34.98 kB / 329.7 MB, free: 14.76 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006221/0.3256, allocations: 263.2 kB / 330 MB, free: 14.57 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.996e-05/0.3256, allocations: 3.938 kB / 330 MB, free: 14.57 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.657e-05/0.3257, allocations: 10.94 kB / 330 MB, free: 14.56 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.511e-05/0.3257, allocations: 9.812 kB / 330 MB, free: 14.55 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004128/0.3261, allocations: 164.3 kB / 330.1 MB, free: 14.48 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001487/0.3276, allocations: 0.9718 MB / 331.1 MB, free: 13.58 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002985/0.3279, allocations: 151.5 kB / 331.3 MB, free: 13.49 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.698e-05/0.328, allocations: 6.344 kB / 331.3 MB, free: 13.49 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002334/0.3282, allocations: 112 kB / 331.4 MB, free: 13.4 MB / 270.1 MB Notification: Performance of pre-optimization done (n=23): time 2.084e-06/0.3282, allocations: 0 / 331.4 MB, free: 13.4 MB / 270.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004826/0.3287, allocations: 211.2 kB / 331.6 MB, free: 13.29 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.025e-05/0.3288, allocations: 55.38 kB / 331.6 MB, free: 13.23 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001458/0.3289, allocations: 153.4 kB / 331.8 MB, free: 13.09 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.256e-05/0.329, allocations: 33.8 kB / 331.8 MB, free: 13.05 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.3291, allocations: 150.6 kB / 332 MB, free: 12.91 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.225e-05/0.3291, allocations: 63.89 kB / 332 MB, free: 12.86 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.423e-05/0.3292, allocations: 5.906 kB / 332 MB, free: 12.85 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.3293, allocations: 326 kB / 332.3 MB, free: 12.53 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001212/0.3294, allocations: 61 kB / 332.4 MB, free: 12.5 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001724/0.3296, allocations: 144.3 kB / 332.5 MB, free: 12.37 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001371/0.3298, allocations: 75.84 kB / 332.6 MB, free: 12.33 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.3298, allocations: 1.031 kB / 332.6 MB, free: 12.33 MB / 270.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004124/0.3302, allocations: 244 kB / 332.9 MB, free: 12.2 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.3302, allocations: 6.906 kB / 332.9 MB, free: 12.2 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/0.3302, allocations: 6.172 kB / 332.9 MB, free: 12.2 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.92e-05/0.3303, allocations: 3.719 kB / 332.9 MB, free: 12.2 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001509/0.3304, allocations: 38.78 kB / 332.9 MB, free: 12.18 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.164e-05/0.3304, allocations: 3.938 kB / 332.9 MB, free: 12.18 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001165/0.3306, allocations: 29.19 kB / 332.9 MB, free: 12.16 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.666e-05/0.3306, allocations: 22.34 kB / 333 MB, free: 12.15 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,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,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.condition,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,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.0001505/0.3308, allocations: 150 kB / 333.1 MB, free: 12.01 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.543e-05/0.3308, allocations: 14.19 kB / 333.1 MB, free: 12 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003602/0.3312, allocations: 190.5 kB / 333.3 MB, free: 11.89 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.197e-05/0.3312, allocations: 10.78 kB / 333.3 MB, free: 11.88 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.3312, allocations: 0 / 333.3 MB, free: 11.88 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.3312, allocations: 3.984 kB / 333.3 MB, free: 11.88 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007535/0.332, allocations: 0.6033 MB / 333.9 MB, free: 11.36 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.332, allocations: 0 / 333.9 MB, free: 11.36 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.409e-05/0.3321, allocations: 15.59 kB / 334 MB, free: 11.36 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.3321, allocations: 4.984 kB / 334 MB, free: 11.35 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.536e-05/0.3321, allocations: 6.125 kB / 334 MB, free: 11.35 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.3321, allocations: 0.9375 kB / 334 MB, free: 11.35 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.3321, allocations: 0 / 334 MB, free: 11.35 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003276/0.3324, allocations: 273.4 kB / 334.2 MB, free: 11.15 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.597e-05/0.3325, allocations: 93.12 kB / 334.3 MB, free: 11.04 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.528e-05/0.3326, allocations: 6.094 kB / 334.3 MB, free: 11.04 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.552e-05/0.3327, allocations: 11.97 kB / 334.3 MB, free: 11.03 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.872e-05/0.3328, allocations: 22.2 kB / 334.4 MB, free: 11.02 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.993e-05/0.3328, allocations: 9.125 kB / 334.4 MB, free: 11.02 MB / 270.1 MB Notification: Performance of sorting global known variables: time 7.061e-05/0.3329, allocations: 94.23 kB / 334.5 MB, free: 10.93 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3329, allocations: 5.125 kB / 334.5 MB, free: 10.93 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003275/0.3332, allocations: 50.59 kB / 334.5 MB, free: 10.91 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 (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.0001919/0.3334, allocations: 108.3 kB / 334.6 MB, free: 10.82 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003532/0.3338, allocations: 185.6 kB / 334.8 MB, free: 10.73 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.3338, allocations: 0 / 334.8 MB, free: 10.73 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001221/0.3339, allocations: 80.47 kB / 334.9 MB, free: 10.65 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002111/0.3341, allocations: 19.91 kB / 334.9 MB, free: 10.63 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006171/0.3347, allocations: 395.7 kB / 335.3 MB, free: 10.22 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002981/0.3351, allocations: 0.7445 MB / 336 MB, free: 9.449 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 7.459e-05/0.3351, allocations: 21.94 kB / 336.1 MB, free: 9.43 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.486e-05/0.3352, allocations: 19.44 kB / 336.1 MB, free: 9.41 MB / 270.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3352, allocations: 0 / 336.1 MB, free: 9.41 MB / 270.1 MB Notification: Performance of Templates: time 0.004502/0.3397, allocations: 1.637 MB / 337.7 MB, free: 7.777 MB / 270.1 MB make -j1 -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: