Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.00128/0.00128, allocations: 110.5 kB / 17.06 MB, free: 6.117 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.001425/0.001425, allocations: 198.9 kB / 18 MB, free: 5.195 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.643/1.643, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.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.00132/0.00132, allocations: 55.92 kB / 327.8 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1342, allocations: 46.62 MB / 374.5 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003196/0.1374, allocations: 1.659 MB / 376.1 MB, free: 2.918 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007103/0.1382, allocations: 255.2 kB / 376.4 MB, free: 2.668 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001147/0.1383, allocations: 7.938 kB / 376.4 MB, free: 2.66 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001538/0.1385, allocations: 31.73 kB / 376.4 MB, free: 2.629 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.433e-05/0.1386, allocations: 15.75 kB / 376.4 MB, free: 2.613 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004469/0.139, allocations: 119.8 kB / 376.5 MB, free: 2.496 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00032/0.1393, allocations: 267.5 kB / 376.8 MB, free: 2.234 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000343/0.1397, allocations: 194.8 kB / 377 MB, free: 2.039 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001131/0.1398, allocations: 83.77 kB / 377.1 MB, free: 1.957 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001498/0.14, allocations: 99.53 kB / 377.2 MB, free: 1.859 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.337e-05/0.14, allocations: 24 kB / 377.2 MB, free: 1.836 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.439e-05/0.1401, allocations: 32 kB / 377.2 MB, free: 1.805 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.852e-05/0.1402, allocations: 63.77 kB / 377.3 MB, free: 1.742 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001112/0.1403, allocations: 107.5 kB / 377.4 MB, free: 1.637 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003544/0.1407, allocations: 251 kB / 377.6 MB, free: 1.391 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.869e-06/0.1407, allocations: 4 kB / 377.6 MB, free: 1.387 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.1407, allocations: 0 / 377.6 MB, free: 1.387 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.037e-05/0.1407, allocations: 0 / 377.6 MB, free: 1.387 MB / 318.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.0009347/0.1417, allocations: 489.9 kB / 378.1 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.379e-05/0.1417, allocations: 8.031 kB / 378.1 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.74e-05/0.1418, allocations: 32.73 kB / 378.2 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005056/0.1423, allocations: 239.9 kB / 378.4 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.686e-05/0.1424, allocations: 20.94 kB / 378.4 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.282e-05/0.1425, allocations: 32.36 kB / 378.4 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005216/0.143, allocations: 266.6 kB / 378.7 MB, free: 224 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.752e-05/0.143, allocations: 192 / 378.7 MB, free: 224 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.957e-05/0.1431, allocations: 19.94 kB / 378.7 MB, free: 204 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.208e-05/0.1431, allocations: 4 kB / 378.7 MB, free: 200 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003218/0.1434, allocations: 169.5 kB / 378.9 MB, free: 28 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3713/0.5147, allocations: 0.9528 MB / 379.9 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004445/0.5152, allocations: 151 kB / 380 MB, free: 13.02 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001734/0.5154, allocations: 76.81 kB / 380.1 MB, free: 12.99 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.698e-05/0.5155, allocations: 9.531 kB / 380.1 MB, free: 12.99 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003134/0.5158, allocations: 118.9 kB / 380.2 MB, free: 12.91 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 4.248e-06/0.5158, allocations: 0 / 380.2 MB, free: 12.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0006756/0.5165, allocations: 214.7 kB / 380.4 MB, free: 12.82 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.595e-05/0.5166, allocations: 57.19 kB / 380.5 MB, free: 12.76 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001784/0.5167, allocations: 154.8 kB / 380.6 MB, free: 12.63 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.469e-05/0.5168, allocations: 38.72 kB / 380.7 MB, free: 12.59 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001545/0.517, allocations: 143.6 kB / 380.8 MB, free: 12.47 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.709e-05/0.517, allocations: 60.33 kB / 380.9 MB, free: 12.43 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000159/0.5172, allocations: 80.03 kB / 380.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.5174, allocations: 326.7 kB / 381.2 MB, free: 12.06 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001673/0.5175, allocations: 67.42 kB / 381.3 MB, free: 12.04 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002349/0.5178, allocations: 139.9 kB / 381.5 MB, free: 11.93 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003374/0.5181, allocations: 187.7 kB / 381.6 MB, free: 11.8 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.5181, allocations: 8.969 kB / 381.6 MB, free: 11.8 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006581/0.5188, allocations: 247.4 kB / 381.9 MB, free: 11.69 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.591e-05/0.5189, allocations: 5.75 kB / 381.9 MB, free: 11.69 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.806e-05/0.5189, allocations: 3.578 kB / 381.9 MB, free: 11.69 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.811e-05/0.5189, allocations: 4.703 kB / 381.9 MB, free: 11.69 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002548/0.5192, allocations: 44.75 kB / 381.9 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.472e-05/0.5192, allocations: 4.625 kB / 381.9 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001478/0.5194, allocations: 29.11 kB / 382 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.157e-05/0.5195, allocations: 18.14 kB / 382 MB, free: 11.65 MB / 318.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.localCondition,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.0002466/0.5197, allocations: 160.6 kB / 382.1 MB, free: 11.51 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.438e-05/0.5198, allocations: 14.81 kB / 382.2 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006361/0.5204, allocations: 196.3 kB / 382.4 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.512e-05/0.5204, allocations: 3.625 kB / 382.4 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.068e-05/0.5205, allocations: 0.5938 kB / 382.4 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.103e-05/0.5205, allocations: 1.938 kB / 382.4 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001315/0.5218, allocations: 0.5876 MB / 382.9 MB, free: 10.97 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.5218, allocations: 0 / 382.9 MB, free: 10.97 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.673e-05/0.5219, allocations: 17.39 kB / 383 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.262e-06/0.5219, allocations: 2.438 kB / 383 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.454e-05/0.522, allocations: 3.609 kB / 383 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.033e-06/0.522, allocations: 5.562 kB / 383 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.522, allocations: 7.109 kB / 383 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005045/0.5225, allocations: 274.7 kB / 383.3 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.27e-05/0.5226, allocations: 93.08 kB / 383.3 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.781e-05/0.5226, allocations: 6.031 kB / 383.3 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.359e-05/0.5227, allocations: 13.34 kB / 383.4 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001296/0.5229, allocations: 21.22 kB / 383.4 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.779e-05/0.5229, allocations: 6.016 kB / 383.4 MB, free: 10.66 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001066/0.523, allocations: 105.6 kB / 383.5 MB, free: 10.58 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.523, allocations: 0 / 383.5 MB, free: 10.58 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004227/0.5234, allocations: 51.94 kB / 383.5 MB, free: 10.56 MB / 318.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.localActive,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,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.0002792/0.5237, allocations: 111.1 kB / 383.7 MB, free: 10.46 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005056/0.5242, allocations: 185.7 kB / 383.8 MB, free: 10.41 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/0.5243, allocations: 1.312 kB / 383.8 MB, free: 10.41 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001884/0.5245, allocations: 84.11 kB / 383.9 MB, free: 10.38 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003533/0.5248, allocations: 21.38 kB / 383.9 MB, free: 10.37 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008764/0.5257, allocations: 340.8 kB / 384.3 MB, free: 10.14 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004034/0.5261, allocations: 0.7441 MB / 385 MB, free: 9.434 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001052/0.5262, allocations: 21.92 kB / 385 MB, free: 9.434 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.35e-05/0.5263, allocations: 26.86 kB / 385.1 MB, free: 9.422 MB / 318.1 MB Notification: Performance of SimCode: time 7.02e-07/0.5263, allocations: 0 / 385.1 MB, free: 9.422 MB / 318.1 MB Notification: Performance of Templates: time 0.007664/0.534, allocations: 1.9 MB / 387 MB, free: 9.277 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1)