Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.001955/0.001955, 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.00266/0.00266, allocations: 195.3 kB / 16.14 MB, free: 6.707 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.72/1.72, allocations: 205.1 MB / 222 MB, free: 4.957 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.001188/0.001188, allocations: 44.41 kB / 278 MB, free: 13.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2954/0.2966, allocations: 46.63 MB / 324.7 MB, free: 1.824 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002905/0.2996, allocations: 1.776 MB / 326.4 MB, free: 436 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.000623/0.3002, allocations: 276.9 kB / 326.7 MB, free: 212 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.89e-05/0.3003, allocations: 7.781 kB / 326.7 MB, free: 208 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001317/0.3005, allocations: 18.8 kB / 326.7 MB, free: 192 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 5.57e-05/0.3005, allocations: 17.39 kB / 326.8 MB, free: 176 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003286/0.3009, allocations: 99.23 kB / 326.9 MB, free: 96 kB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003368/0.3012, allocations: 245 kB / 327.1 MB, free: 15.96 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002827/0.3015, allocations: 174.9 kB / 327.3 MB, free: 15.85 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.451e-05/0.3016, allocations: 78.83 kB / 327.3 MB, free: 15.8 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000146/0.3018, allocations: 104.9 kB / 327.4 MB, free: 15.72 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.262e-05/0.3018, allocations: 16 kB / 327.5 MB, free: 15.72 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.545e-05/0.3019, allocations: 25.28 kB / 327.5 MB, free: 15.71 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.98e-05/0.302, allocations: 41.19 kB / 327.5 MB, free: 15.68 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001152/0.3021, allocations: 101.6 kB / 327.6 MB, free: 15.61 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002813/0.3024, allocations: 207.4 kB / 327.8 MB, free: 15.45 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.3024, allocations: 0 / 327.8 MB, free: 15.45 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.697e-06/0.3024, allocations: 3.984 kB / 327.8 MB, free: 15.45 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.3024, allocations: 4 kB / 327.8 MB, free: 15.44 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.0007237/0.3031, allocations: 492.2 kB / 328.3 MB, free: 14.96 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.3032, allocations: 8.906 kB / 328.3 MB, free: 14.96 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.132e-05/0.3033, allocations: 20.44 kB / 328.3 MB, free: 14.95 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002519/0.3035, allocations: 232.5 kB / 328.6 MB, free: 14.71 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.132e-05/0.3036, allocations: 28.33 kB / 328.6 MB, free: 14.69 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.219e-05/0.3036, allocations: 26.28 kB / 328.6 MB, free: 14.68 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000471/0.3041, allocations: 271.2 kB / 328.9 MB, free: 14.49 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.338e-05/0.3041, allocations: 5.625 kB / 328.9 MB, free: 14.49 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.965e-05/0.3042, allocations: 14.66 kB / 328.9 MB, free: 14.48 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.3042, allocations: 5.75 kB / 328.9 MB, free: 14.48 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003158/0.3045, allocations: 166.2 kB / 329.1 MB, free: 14.4 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001244/0.3057, allocations: 0.9677 MB / 330 MB, free: 13.5 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002981/0.3061, allocations: 156.8 kB / 330.2 MB, free: 13.41 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001187/0.3062, allocations: 77.88 kB / 330.3 MB, free: 13.37 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.343e-05/0.3062, allocations: 2.469 kB / 330.3 MB, free: 13.37 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002166/0.3064, allocations: 117.3 kB / 330.4 MB, free: 13.27 MB / 270.1 MB Notification: Performance of pre-optimization done (n=23): time 1.423e-06/0.3064, allocations: 0 / 330.4 MB, free: 13.27 MB / 270.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004525/0.3069, allocations: 211.8 kB / 330.6 MB, free: 13.16 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.7e-05/0.307, allocations: 59.73 kB / 330.7 MB, free: 13.1 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001433/0.3071, allocations: 155.5 kB / 330.8 MB, free: 12.96 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.175e-05/0.3072, allocations: 34.61 kB / 330.8 MB, free: 12.92 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.3073, allocations: 142.3 kB / 331 MB, free: 12.79 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.013e-05/0.3073, allocations: 55.89 kB / 331 MB, free: 12.74 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001121/0.3074, allocations: 77.33 kB / 331.1 MB, free: 12.69 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.3076, allocations: 337.8 kB / 331.4 MB, free: 12.36 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001183/0.3077, allocations: 62.31 kB / 331.5 MB, free: 12.33 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001687/0.3079, allocations: 136.2 kB / 331.6 MB, free: 12.21 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002646/0.3082, allocations: 191.6 kB / 331.8 MB, free: 12.06 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.908e-06/0.3082, allocations: 1 kB / 331.8 MB, free: 12.06 MB / 270.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004185/0.3086, allocations: 250.5 kB / 332.1 MB, free: 11.93 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/0.3086, allocations: 6.469 kB / 332.1 MB, free: 11.93 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.3086, allocations: 2.219 kB / 332.1 MB, free: 11.93 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.234e-05/0.3087, allocations: 7.797 kB / 332.1 MB, free: 11.92 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001504/0.3088, allocations: 37.92 kB / 332.1 MB, free: 11.91 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.3088, allocations: 4.312 kB / 332.1 MB, free: 11.91 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001492/0.309, allocations: 23.56 kB / 332.1 MB, free: 11.89 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.538e-05/0.3091, allocations: 18.64 kB / 332.2 MB, free: 11.88 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.0002176/0.3093, allocations: 158.2 kB / 332.3 MB, free: 11.73 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.705e-05/0.3093, allocations: 14.03 kB / 332.3 MB, free: 11.73 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005219/0.3099, allocations: 195.4 kB / 332.5 MB, free: 11.61 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.3099, allocations: 6.25 kB / 332.5 MB, free: 11.61 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.3099, allocations: 0 / 332.5 MB, free: 11.61 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.3099, allocations: 1.156 kB / 332.5 MB, free: 11.61 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001083/0.311, allocations: 0.5973 MB / 333.1 MB, free: 11.09 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.311, allocations: 0 / 333.1 MB, free: 11.09 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000106/0.3111, allocations: 15.59 kB / 333.1 MB, free: 11.09 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.779e-06/0.3112, allocations: 5.406 kB / 333.1 MB, free: 11.08 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.41e-05/0.3112, allocations: 9.391 kB / 333.2 MB, free: 11.07 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.528e-06/0.3112, allocations: 5.531 kB / 333.2 MB, free: 11.07 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.3112, allocations: 0 / 333.2 MB, free: 11.07 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004727/0.3117, allocations: 266.1 kB / 333.4 MB, free: 10.88 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.337e-05/0.3118, allocations: 101.7 kB / 333.5 MB, free: 10.77 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.39e-05/0.3119, allocations: 5.125 kB / 333.5 MB, free: 10.76 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001506/0.312, allocations: 7.031 kB / 333.5 MB, free: 10.76 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001047/0.3121, allocations: 22.16 kB / 333.6 MB, free: 10.75 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.54e-05/0.3122, allocations: 8.531 kB / 333.6 MB, free: 10.74 MB / 270.1 MB Notification: Performance of sorting global known variables: time 9.617e-05/0.3123, allocations: 99.25 kB / 333.7 MB, free: 10.66 MB / 270.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.3123, allocations: 0 / 333.7 MB, free: 10.66 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0005795/0.3129, allocations: 51.47 kB / 333.7 MB, free: 10.64 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.0002545/0.3132, allocations: 112.4 kB / 333.8 MB, free: 10.54 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0005363/0.3137, allocations: 184.7 kB / 334 MB, free: 10.4 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.3137, allocations: 64 / 334 MB, free: 10.4 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002119/0.314, allocations: 91.84 kB / 334.1 MB, free: 10.31 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004863/0.3145, allocations: 20.41 kB / 334.1 MB, free: 10.29 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009233/0.3154, allocations: 402.3 kB / 334.5 MB, free: 9.871 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004274/0.3158, allocations: 0.7404 MB / 335.2 MB, free: 9.105 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001265/0.316, allocations: 29.94 kB / 335.3 MB, free: 9.078 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.821e-05/0.3161, allocations: 19.44 kB / 335.3 MB, free: 9.059 MB / 270.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3161, allocations: 4 kB / 335.3 MB, free: 9.055 MB / 270.1 MB Notification: Performance of Templates: time 0.006867/0.3229, allocations: 1.718 MB / 337 MB, free: 7.34 MB / 270.1 MB make -j1 -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1)