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.00126/0.00126, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001846/0.001846, allocations: 195.9 kB / 16.14 MB, free: 6.715 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.789/1.789, allocations: 205.1 MB / 222 MB, free: 4.746 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.001364/0.001364, allocations: 52.39 kB / 278 MB, free: 12.79 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3156/0.3169, allocations: 46.63 MB / 324.7 MB, free: 2.043 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003371/0.3204, allocations: 1.767 MB / 326.4 MB, free: 0.6523 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007532/0.3211, allocations: 285.2 kB / 326.7 MB, free: 436 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001267/0.3213, allocations: 7.844 kB / 326.7 MB, free: 432 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001564/0.3215, allocations: 19.92 kB / 326.7 MB, free: 416 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 5.709e-05/0.3215, allocations: 5 kB / 326.7 MB, free: 412 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003816/0.3219, allocations: 105.6 kB / 326.8 MB, free: 324 kB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003205/0.3222, allocations: 249.8 kB / 327.1 MB, free: 180 kB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002814/0.3225, allocations: 170.4 kB / 327.3 MB, free: 76 kB / 254.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.405e-05/0.3226, allocations: 83.39 kB / 327.3 MB, free: 24 kB / 254.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001827/0.3228, allocations: 90.75 kB / 327.4 MB, free: 15.95 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.656e-05/0.3229, allocations: 17.12 kB / 327.4 MB, free: 15.95 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.128e-05/0.323, allocations: 34.39 kB / 327.5 MB, free: 15.94 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.271e-05/0.323, allocations: 41.88 kB / 327.5 MB, free: 15.91 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001181/0.3232, allocations: 102 kB / 327.6 MB, free: 15.83 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003018/0.3235, allocations: 209.2 kB / 327.8 MB, free: 15.67 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.3235, allocations: 1.312 kB / 327.8 MB, free: 15.67 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.3235, allocations: 0 / 327.8 MB, free: 15.67 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.3235, allocations: 0 / 327.8 MB, free: 15.67 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.0008544/0.3244, allocations: 495.5 kB / 328.3 MB, free: 15.18 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.314e-05/0.3244, allocations: 9.062 kB / 328.3 MB, free: 15.18 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.437e-05/0.3245, allocations: 21.22 kB / 328.3 MB, free: 15.18 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003028/0.3248, allocations: 231.1 kB / 328.6 MB, free: 14.93 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.849e-05/0.3249, allocations: 25.69 kB / 328.6 MB, free: 14.92 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.571e-05/0.3249, allocations: 29.94 kB / 328.6 MB, free: 14.91 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005224/0.3255, allocations: 275.5 kB / 328.9 MB, free: 14.71 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.53e-05/0.3255, allocations: 1.312 kB / 328.9 MB, free: 14.71 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.946e-05/0.3255, allocations: 10.44 kB / 328.9 MB, free: 14.7 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.673e-05/0.3256, allocations: 6.406 kB / 328.9 MB, free: 14.7 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000359/0.3259, allocations: 165.3 kB / 329.1 MB, free: 14.62 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001325/0.3273, allocations: 0.9681 MB / 330 MB, free: 13.73 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003463/0.3276, allocations: 156.5 kB / 330.2 MB, free: 13.64 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001561/0.3278, allocations: 81.81 kB / 330.3 MB, free: 13.59 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.965e-05/0.3278, allocations: 6.172 kB / 330.3 MB, free: 13.59 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000346/0.3282, allocations: 114.2 kB / 330.4 MB, free: 13.5 MB / 270.1 MB Notification: Performance of pre-optimization done (n=23): time 1.643e-06/0.3282, allocations: 4 kB / 330.4 MB, free: 13.49 MB / 270.1 MB Notification: Performance of matching and sorting (n=23): time 0.0005882/0.3288, allocations: 208.1 kB / 330.6 MB, free: 13.39 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.954e-05/0.3288, allocations: 59.5 kB / 330.7 MB, free: 13.32 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000149/0.329, allocations: 147.3 kB / 330.8 MB, free: 13.19 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.747e-05/0.329, allocations: 42.19 kB / 330.8 MB, free: 13.14 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001133/0.3292, allocations: 139.2 kB / 331 MB, free: 13.02 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.324e-05/0.3292, allocations: 59.5 kB / 331 MB, free: 12.96 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001226/0.3294, allocations: 81.38 kB / 331.1 MB, free: 12.91 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.3295, allocations: 333.9 kB / 331.4 MB, free: 12.58 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000136/0.3297, allocations: 62.44 kB / 331.5 MB, free: 12.55 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000198/0.3299, allocations: 137.9 kB / 331.6 MB, free: 12.43 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002989/0.3302, allocations: 193 kB / 331.8 MB, free: 12.28 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.89e-06/0.3302, allocations: 1.062 kB / 331.8 MB, free: 12.28 MB / 270.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004691/0.3306, allocations: 247.5 kB / 332.1 MB, free: 12.15 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.287e-05/0.3307, allocations: 5.625 kB / 332.1 MB, free: 12.15 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.3307, allocations: 2.25 kB / 332.1 MB, free: 12.15 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.651e-05/0.3307, allocations: 4.469 kB / 332.1 MB, free: 12.15 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001509/0.3309, allocations: 41.89 kB / 332.1 MB, free: 12.13 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.24e-05/0.3309, allocations: 11.33 kB / 332.1 MB, free: 12.12 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001091/0.331, allocations: 28.27 kB / 332.2 MB, free: 12.1 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.725e-05/0.3311, allocations: 14.81 kB / 332.2 MB, free: 12.1 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.0001974/0.3313, allocations: 157.2 kB / 332.3 MB, free: 11.95 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.746e-05/0.3313, allocations: 14.16 kB / 332.3 MB, free: 11.94 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004014/0.3317, allocations: 195.8 kB / 332.5 MB, free: 11.82 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.3317, allocations: 2.188 kB / 332.5 MB, free: 11.82 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.832e-06/0.3318, allocations: 4 kB / 332.5 MB, free: 11.82 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/0.3318, allocations: 5.234 kB / 332.5 MB, free: 11.82 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008127/0.3326, allocations: 0.5858 MB / 333.1 MB, free: 11.31 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.3326, allocations: 0 / 333.1 MB, free: 11.31 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.726e-05/0.3327, allocations: 14.77 kB / 333.1 MB, free: 11.31 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.3327, allocations: 5.781 kB / 333.1 MB, free: 11.3 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.734e-05/0.3327, allocations: 5.062 kB / 333.1 MB, free: 11.3 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.3327, allocations: 1.938 kB / 333.2 MB, free: 11.3 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3327, allocations: 4 kB / 333.2 MB, free: 11.3 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003527/0.3331, allocations: 270.2 kB / 333.4 MB, free: 11.1 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.535e-05/0.3332, allocations: 96.8 kB / 333.5 MB, free: 10.98 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.768e-05/0.3332, allocations: 11.98 kB / 333.5 MB, free: 10.97 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.015e-05/0.3333, allocations: 11.94 kB / 333.5 MB, free: 10.96 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.088e-05/0.3334, allocations: 15.97 kB / 333.6 MB, free: 10.95 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.577e-05/0.3334, allocations: 8 kB / 333.6 MB, free: 10.94 MB / 270.1 MB Notification: Performance of sorting global known variables: time 7.715e-05/0.3335, allocations: 103.8 kB / 333.7 MB, free: 10.84 MB / 270.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3335, allocations: 0 / 333.7 MB, free: 10.84 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002993/0.3338, allocations: 51.84 kB / 333.7 MB, free: 10.79 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.0001858/0.334, allocations: 119.1 kB / 333.8 MB, free: 10.66 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003519/0.3344, allocations: 187.7 kB / 334 MB, free: 10.48 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.3344, allocations: 0.5625 kB / 334 MB, free: 10.48 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001336/0.3345, allocations: 79.91 kB / 334.1 MB, free: 10.4 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000304/0.3348, allocations: 20 kB / 334.1 MB, free: 10.38 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007321/0.3356, allocations: 410.2 kB / 334.5 MB, free: 9.949 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003692/0.3359, allocations: 0.7365 MB / 335.2 MB, free: 9.188 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 9.535e-05/0.336, allocations: 21.94 kB / 335.3 MB, free: 9.168 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.525e-05/0.3361, allocations: 27.42 kB / 335.3 MB, free: 9.141 MB / 270.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3361, allocations: 0 / 335.3 MB, free: 9.141 MB / 270.1 MB Notification: Performance of Templates: time 0.005349/0.3415, allocations: 1.719 MB / 337 MB, free: 7.426 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)