Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001296/0.001296, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001681/0.001681, allocations: 193.5 kB / 16.13 MB, free: 6.668 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.76/1.76, allocations: 205.1 MB / 222 MB, free: 4.742 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.001143/0.001142, allocations: 56.34 kB / 278 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3183/0.3194, allocations: 46.62 MB / 324.7 MB, free: 2.152 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002945/0.3224, allocations: 1.57 MB / 326.2 MB, free: 0.9102 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006769/0.3231, allocations: 268.3 kB / 326.5 MB, free: 0.6992 MB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.3232, allocations: 2.719 kB / 326.5 MB, free: 0.6992 MB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001468/0.3234, allocations: 19.7 kB / 326.5 MB, free: 0.6836 MB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 4.657e-05/0.3235, allocations: 13.23 kB / 326.5 MB, free: 0.6719 MB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000388/0.3239, allocations: 96.98 kB / 326.6 MB, free: 0.5938 MB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003765/0.3242, allocations: 242.7 kB / 326.9 MB, free: 468 kB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003492/0.3246, allocations: 142.5 kB / 327 MB, free: 376 kB / 254.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000117/0.3247, allocations: 76.22 kB / 327.1 MB, free: 332 kB / 254.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001752/0.3249, allocations: 93.3 kB / 327.2 MB, free: 256 kB / 254.1 MB Notification: Performance of NFPackage.collectConstants: time 4.986e-05/0.325, allocations: 15.94 kB / 327.2 MB, free: 256 kB / 254.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.573e-05/0.3251, allocations: 22.62 kB / 327.2 MB, free: 252 kB / 254.1 MB Notification: Performance of NFScalarize.scalarize: time 6.711e-05/0.3251, allocations: 53.14 kB / 327.3 MB, free: 208 kB / 254.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001146/0.3253, allocations: 92.39 kB / 327.3 MB, free: 136 kB / 254.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000319/0.3256, allocations: 202.7 kB / 327.5 MB, free: 15.98 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.3256, allocations: 3.938 kB / 327.5 MB, free: 15.97 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3256, allocations: 1.5 kB / 327.5 MB, free: 15.97 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.162e-06/0.3256, allocations: 0 / 327.5 MB, free: 15.97 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0008471/0.3265, allocations: 480.7 kB / 328 MB, free: 15.51 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.424e-05/0.3265, allocations: 9.062 kB / 328 MB, free: 15.51 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.279e-05/0.3266, allocations: 28.02 kB / 328 MB, free: 15.49 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003018/0.3269, allocations: 226.1 kB / 328.3 MB, free: 15.25 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.401e-05/0.327, allocations: 21.16 kB / 328.3 MB, free: 15.24 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.103e-05/0.327, allocations: 24.91 kB / 328.3 MB, free: 15.23 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005728/0.3276, allocations: 246.5 kB / 328.6 MB, free: 15.07 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.3276, allocations: 192 / 328.6 MB, free: 15.07 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.405e-05/0.3277, allocations: 14.27 kB / 328.6 MB, free: 15.06 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.458e-05/0.3277, allocations: 5.656 kB / 328.6 MB, free: 15.06 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003754/0.3281, allocations: 155.1 kB / 328.7 MB, free: 14.99 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001222/0.3293, allocations: 0.7157 MB / 329.4 MB, free: 14.34 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003703/0.3297, allocations: 173 kB / 329.6 MB, free: 14.25 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001333/0.3298, allocations: 80.83 kB / 329.7 MB, free: 14.2 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.419e-05/0.3299, allocations: 6.016 kB / 329.7 MB, free: 14.2 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002821/0.3302, allocations: 123.3 kB / 329.8 MB, free: 14.1 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 5.551e-06/0.3302, allocations: 4 kB / 329.8 MB, free: 14.1 MB / 270.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004989/0.3307, allocations: 216.6 kB / 330 MB, free: 13.99 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.061e-05/0.3308, allocations: 59.16 kB / 330.1 MB, free: 13.92 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001483/0.3309, allocations: 145.3 kB / 330.2 MB, free: 13.79 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.417e-05/0.331, allocations: 34.2 kB / 330.3 MB, free: 13.75 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.3311, allocations: 129.1 kB / 330.4 MB, free: 13.63 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.331e-05/0.3311, allocations: 60.14 kB / 330.5 MB, free: 13.58 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000116/0.3313, allocations: 78.94 kB / 330.5 MB, free: 13.53 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.3314, allocations: 331.2 kB / 330.9 MB, free: 13.2 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001458/0.3316, allocations: 66.5 kB / 330.9 MB, free: 13.17 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002003/0.3318, allocations: 124 kB / 331 MB, free: 13.07 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003506/0.3321, allocations: 178 kB / 331.2 MB, free: 12.93 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.424e-06/0.3322, allocations: 5.188 kB / 331.2 MB, free: 12.93 MB / 270.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004824/0.3326, allocations: 242.8 kB / 331.5 MB, free: 12.8 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/0.3327, allocations: 9.797 kB / 331.5 MB, free: 12.8 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.3327, allocations: 2.875 kB / 331.5 MB, free: 12.8 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.193e-05/0.3327, allocations: 2.938 kB / 331.5 MB, free: 12.8 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001611/0.3329, allocations: 31.48 kB / 331.5 MB, free: 12.79 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.3329, allocations: 6.938 kB / 331.5 MB, free: 12.78 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000117/0.333, allocations: 20.41 kB / 331.5 MB, free: 12.77 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.707e-05/0.3331, allocations: 12.45 kB / 331.5 MB, free: 12.77 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001892/0.3333, allocations: 159.8 kB / 331.7 MB, free: 12.62 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.037e-05/0.3333, allocations: 21.98 kB / 331.7 MB, free: 12.6 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004743/0.3338, allocations: 196.9 kB / 331.9 MB, free: 12.48 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.3338, allocations: 3.281 kB / 331.9 MB, free: 12.48 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.021e-05/0.3338, allocations: 0 / 331.9 MB, free: 12.48 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.3338, allocations: 1.094 kB / 331.9 MB, free: 12.48 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00114/0.335, allocations: 0.5689 MB / 332.5 MB, free: 12 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.796e-06/0.335, allocations: 0.9688 kB / 332.5 MB, free: 12 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.579e-05/0.3351, allocations: 23.86 kB / 332.5 MB, free: 11.99 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.763e-06/0.3351, allocations: 1.156 kB / 332.5 MB, free: 11.99 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.42e-05/0.3352, allocations: 10.34 kB / 332.5 MB, free: 11.98 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.3352, allocations: 1.25 kB / 332.5 MB, free: 11.98 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/0.3352, allocations: 3.938 kB / 332.5 MB, free: 11.98 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004951/0.3357, allocations: 276.8 kB / 332.8 MB, free: 11.78 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.885e-05/0.3358, allocations: 97.3 kB / 332.9 MB, free: 11.67 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.59e-05/0.3358, allocations: 6.156 kB / 332.9 MB, free: 11.67 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001093/0.336, allocations: 11.27 kB / 332.9 MB, free: 11.66 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001162/0.3361, allocations: 22.5 kB / 332.9 MB, free: 11.65 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.685e-05/0.3361, allocations: 12.34 kB / 332.9 MB, free: 11.64 MB / 270.1 MB Notification: Performance of sorting global known variables: time 7.505e-05/0.3362, allocations: 91.27 kB / 333 MB, free: 11.55 MB / 270.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.3362, allocations: 0 / 333 MB, free: 11.55 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003872/0.3366, allocations: 47.91 kB / 333.1 MB, free: 11.5 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 (transition2.enableFire,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,step.newActive,step.oldActive,transition2.fire,transition2.t_start,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 (26): * Single equations (assignments): 22 * 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.0002027/0.3368, allocations: 115.1 kB / 333.2 MB, free: 11.38 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003922/0.3372, allocations: 179.8 kB / 333.4 MB, free: 11.2 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3372, allocations: 0 / 333.4 MB, free: 11.2 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001503/0.3374, allocations: 84.56 kB / 333.4 MB, free: 11.12 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003093/0.3377, allocations: 19.94 kB / 333.5 MB, free: 11.1 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006873/0.3384, allocations: 410.3 kB / 333.9 MB, free: 10.67 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003697/0.3388, allocations: 0.7326 MB / 334.6 MB, free: 9.91 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 8.989e-05/0.3389, allocations: 25.94 kB / 334.6 MB, free: 9.887 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.403e-05/0.339, allocations: 27.44 kB / 334.6 MB, free: 9.863 MB / 270.1 MB Notification: Performance of SimCode: time 5.01e-07/0.339, allocations: 0 / 334.6 MB, free: 9.863 MB / 270.1 MB Notification: Performance of Templates: time 0.005783/0.3448, allocations: 1.731 MB / 336.4 MB, free: 8.137 MB / 270.1 MB make -j1 -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.1_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1)