Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001414/0.001413, 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.002301/0.002301, allocations: 197 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.191/2.191, 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.002349/0.002349, allocations: 52.36 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3138/0.3162, allocations: 46.63 MB / 324.8 MB, free: 2.133 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003229/0.3195, allocations: 1.753 MB / 326.6 MB, free: 0.75 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006863/0.3202, allocations: 278.8 kB / 326.9 MB, free: 0.5273 MB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001075/0.3203, allocations: 7.656 kB / 326.9 MB, free: 0.5234 MB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001405/0.3205, allocations: 10.84 kB / 326.9 MB, free: 0.5156 MB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 5.164e-05/0.3206, allocations: 16.97 kB / 326.9 MB, free: 0.5 MB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003817/0.321, allocations: 103.4 kB / 327 MB, free: 428 kB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003108/0.3213, allocations: 270.1 kB / 327.3 MB, free: 268 kB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003376/0.3216, allocations: 180.2 kB / 327.4 MB, free: 152 kB / 254.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001043/0.3217, allocations: 92.83 kB / 327.5 MB, free: 92 kB / 254.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001267/0.3219, allocations: 95 kB / 327.6 MB, free: 16 kB / 254.1 MB Notification: Performance of NFPackage.collectConstants: time 4.706e-05/0.3219, allocations: 23.09 kB / 327.6 MB, free: 16 kB / 254.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001231/0.3221, allocations: 42.64 kB / 327.7 MB, free: 0 / 254.1 MB Notification: Performance of NFScalarize.scalarize: time 8.07e-05/0.3221, allocations: 58.3 kB / 327.7 MB, free: 15.95 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001198/0.3223, allocations: 98.22 kB / 327.8 MB, free: 15.88 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003302/0.3226, allocations: 243 kB / 328.1 MB, free: 15.7 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3226, allocations: 1.094 kB / 328.1 MB, free: 15.7 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3226, allocations: 0 / 328.1 MB, free: 15.7 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.728e-06/0.3227, allocations: 0 / 328.1 MB, free: 15.7 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.0007415/0.3234, allocations: 494 kB / 328.6 MB, free: 15.22 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.948e-05/0.3235, allocations: 9.281 kB / 328.6 MB, free: 15.22 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.093e-05/0.3235, allocations: 32.52 kB / 328.6 MB, free: 15.2 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002911/0.3238, allocations: 228.4 kB / 328.8 MB, free: 14.96 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.376e-05/0.3239, allocations: 20.19 kB / 328.8 MB, free: 14.95 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.533e-05/0.3239, allocations: 26.56 kB / 328.9 MB, free: 14.95 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004877/0.3244, allocations: 271.9 kB / 329.1 MB, free: 14.75 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.3245, allocations: 1.594 kB / 329.1 MB, free: 14.75 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.964e-05/0.3245, allocations: 17.28 kB / 329.1 MB, free: 14.74 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-06/0.3245, allocations: 6.969 kB / 329.2 MB, free: 14.74 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003009/0.3248, allocations: 170.6 kB / 329.3 MB, free: 14.66 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00118/0.326, allocations: 0.9651 MB / 330.3 MB, free: 13.76 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002822/0.3263, allocations: 156.9 kB / 330.4 MB, free: 13.67 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001333/0.3264, allocations: 81.45 kB / 330.5 MB, free: 13.62 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.975e-05/0.3265, allocations: 1.406 kB / 330.5 MB, free: 13.62 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000277/0.3267, allocations: 117.8 kB / 330.6 MB, free: 13.53 MB / 270.1 MB Notification: Performance of pre-optimization done (n=23): time 2.104e-06/0.3268, allocations: 1.562 kB / 330.6 MB, free: 13.53 MB / 270.1 MB Notification: Performance of matching and sorting (n=23): time 0.000437/0.3272, allocations: 207.6 kB / 330.8 MB, free: 13.43 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.117e-05/0.3273, allocations: 62.7 kB / 330.9 MB, free: 13.36 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001472/0.3274, allocations: 154.1 kB / 331.1 MB, free: 13.22 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.548e-05/0.3275, allocations: 37.2 kB / 331.1 MB, free: 13.18 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001043/0.3276, allocations: 140 kB / 331.2 MB, free: 13.05 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.661e-05/0.3276, allocations: 63.55 kB / 331.3 MB, free: 13 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001042/0.3277, allocations: 76.58 kB / 331.4 MB, free: 12.95 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.3279, allocations: 330 kB / 331.7 MB, free: 12.62 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/0.328, allocations: 70.39 kB / 331.8 MB, free: 12.58 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002522/0.3283, allocations: 139.7 kB / 331.9 MB, free: 12.46 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002736/0.3286, allocations: 188.2 kB / 332.1 MB, free: 12.31 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.3286, allocations: 1.188 kB / 332.1 MB, free: 12.31 MB / 270.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004001/0.329, allocations: 247 kB / 332.3 MB, free: 12.18 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.329, allocations: 5.562 kB / 332.3 MB, free: 12.18 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.329, allocations: 10.2 kB / 332.3 MB, free: 12.18 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.946e-05/0.329, allocations: 8.438 kB / 332.3 MB, free: 12.17 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001497/0.3292, allocations: 37.56 kB / 332.4 MB, free: 12.16 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.949e-06/0.3292, allocations: 4.562 kB / 332.4 MB, free: 12.16 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001059/0.3293, allocations: 27.56 kB / 332.4 MB, free: 12.14 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.606e-05/0.3294, allocations: 19.06 kB / 332.4 MB, free: 12.13 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.0001663/0.3296, allocations: 161.9 kB / 332.6 MB, free: 11.98 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.457e-05/0.3296, allocations: 13.41 kB / 332.6 MB, free: 11.97 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003422/0.3299, allocations: 193 kB / 332.8 MB, free: 11.86 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-06/0.3299, allocations: 2.344 kB / 332.8 MB, free: 11.86 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.33, allocations: 0 / 332.8 MB, free: 11.86 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.33, allocations: 1 kB / 332.8 MB, free: 11.86 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007497/0.3307, allocations: 0.5972 MB / 333.4 MB, free: 11.29 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.3307, allocations: 0 / 333.4 MB, free: 11.29 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.964e-05/0.3308, allocations: 15.98 kB / 333.4 MB, free: 11.27 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.97e-06/0.3308, allocations: 7.938 kB / 333.4 MB, free: 11.26 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.306e-05/0.3308, allocations: 0 / 333.4 MB, free: 11.26 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.048e-06/0.3308, allocations: 3.938 kB / 333.4 MB, free: 11.26 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.3309, allocations: 8 kB / 333.4 MB, free: 11.25 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002925/0.3312, allocations: 275.2 kB / 333.7 MB, free: 10.96 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.852e-05/0.3312, allocations: 92.89 kB / 333.8 MB, free: 10.86 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.492e-05/0.3313, allocations: 4 kB / 333.8 MB, free: 10.85 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.045e-05/0.3313, allocations: 8 kB / 333.8 MB, free: 10.84 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.137e-05/0.3314, allocations: 23.91 kB / 333.8 MB, free: 10.82 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.301e-05/0.3314, allocations: 4 kB / 333.8 MB, free: 10.82 MB / 270.1 MB Notification: Performance of sorting global known variables: time 6.509e-05/0.3315, allocations: 103.8 kB / 333.9 MB, free: 10.71 MB / 270.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3315, allocations: 4 kB / 333.9 MB, free: 10.71 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003065/0.3318, allocations: 47.84 kB / 334 MB, free: 10.66 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 (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.0001496/0.332, allocations: 119.1 kB / 334.1 MB, free: 10.54 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003729/0.3324, allocations: 195.7 kB / 334.3 MB, free: 10.35 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3324, allocations: 0 / 334.3 MB, free: 10.35 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001216/0.3325, allocations: 83.91 kB / 334.4 MB, free: 10.27 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002866/0.3328, allocations: 16.98 kB / 334.4 MB, free: 10.25 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006544/0.3335, allocations: 417.8 kB / 334.8 MB, free: 9.812 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003054/0.3338, allocations: 0.74 MB / 335.5 MB, free: 9.047 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 8.393e-05/0.3339, allocations: 25.94 kB / 335.6 MB, free: 9.02 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.815e-05/0.3339, allocations: 23.38 kB / 335.6 MB, free: 8.996 MB / 270.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3339, allocations: 0 / 335.6 MB, free: 8.996 MB / 270.1 MB Notification: Performance of Templates: time 0.00487/0.3388, allocations: 1.835 MB / 337.4 MB, free: 7.164 MB / 270.1 MB make -j1 -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1)