Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001144/0.001144, allocations: 114.2 kB / 16.63 MB, free: 6.332 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.001359/0.001359, allocations: 189.9 kB / 17.55 MB, free: 5.801 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.677/1.677, allocations: 205.1 MB / 223.4 MB, free: 12.44 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.001133/0.001134, allocations: 51.92 kB / 279.5 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1104, allocations: 46.63 MB / 326.1 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003726/0.1142, allocations: 1.78 MB / 327.9 MB, free: 3 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007013/0.115, allocations: 271.2 kB / 328.2 MB, free: 2.734 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001049/0.1151, allocations: 7.938 kB / 328.2 MB, free: 2.727 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001464/0.1153, allocations: 11.86 kB / 328.2 MB, free: 2.715 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 7.108e-05/0.1153, allocations: 11.88 kB / 328.2 MB, free: 2.703 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003917/0.1157, allocations: 103.9 kB / 328.3 MB, free: 2.602 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003955/0.1161, allocations: 263.5 kB / 328.6 MB, free: 2.344 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003297/0.1165, allocations: 185.5 kB / 328.7 MB, free: 2.164 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001024/0.1166, allocations: 95.69 kB / 328.8 MB, free: 2.07 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001566/0.1167, allocations: 95.61 kB / 328.9 MB, free: 1.977 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.718e-05/0.1168, allocations: 20 kB / 328.9 MB, free: 1.957 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.164e-05/0.1169, allocations: 39.86 kB / 329 MB, free: 1.918 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.342e-05/0.117, allocations: 59.83 kB / 329 MB, free: 1.859 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001112/0.1171, allocations: 99.47 kB / 329.1 MB, free: 1.762 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003937/0.1175, allocations: 239.5 kB / 329.4 MB, free: 1.527 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.1175, allocations: 3.938 kB / 329.4 MB, free: 1.523 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.225e-06/0.1175, allocations: 0 / 329.4 MB, free: 1.523 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.237e-06/0.1175, allocations: 0 / 329.4 MB, free: 1.523 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.0008067/0.1183, allocations: 494 kB / 329.9 MB, free: 0.9844 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.1184, allocations: 12.03 kB / 329.9 MB, free: 0.9727 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.091e-05/0.1185, allocations: 24.66 kB / 329.9 MB, free: 0.9492 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002968/0.1188, allocations: 224.1 kB / 330.1 MB, free: 0.6914 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.145e-05/0.1188, allocations: 20.94 kB / 330.1 MB, free: 0.668 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.376e-05/0.1189, allocations: 28.36 kB / 330.2 MB, free: 0.6406 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004513/0.1193, allocations: 266.6 kB / 330.4 MB, free: 368 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.522e-05/0.1193, allocations: 8.125 kB / 330.4 MB, free: 360 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.056e-05/0.1194, allocations: 15.94 kB / 330.5 MB, free: 344 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.1194, allocations: 8 kB / 330.5 MB, free: 336 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002965/0.1197, allocations: 165.6 kB / 330.6 MB, free: 172 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001202/0.1209, allocations: 0.9672 MB / 331.6 MB, free: 15.13 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003546/0.1213, allocations: 158.7 kB / 331.7 MB, free: 14.97 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001091/0.1214, allocations: 72.92 kB / 331.8 MB, free: 14.89 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.58e-05/0.1214, allocations: 3.938 kB / 331.8 MB, free: 14.89 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003265/0.1218, allocations: 115.3 kB / 331.9 MB, free: 14.77 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.723e-06/0.1218, allocations: 0 / 331.9 MB, free: 14.77 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004182/0.1222, allocations: 213.3 kB / 332.1 MB, free: 14.55 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.136e-05/0.1223, allocations: 59.39 kB / 332.2 MB, free: 14.48 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001766/0.1224, allocations: 153.6 kB / 332.3 MB, free: 14.32 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.669e-05/0.1225, allocations: 37.7 kB / 332.4 MB, free: 14.28 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001049/0.1226, allocations: 136.5 kB / 332.5 MB, free: 14.14 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.853e-05/0.1227, allocations: 67.12 kB / 332.6 MB, free: 14.07 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001018/0.1228, allocations: 78.02 kB / 332.7 MB, free: 13.99 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002326/0.123, allocations: 326.8 kB / 333 MB, free: 13.66 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000111/0.1232, allocations: 64.62 kB / 333 MB, free: 13.6 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001683/0.1233, allocations: 145.8 kB / 333.2 MB, free: 13.43 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002552/0.1236, allocations: 188.3 kB / 333.4 MB, free: 13.21 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.656e-06/0.1236, allocations: 4 kB / 333.4 MB, free: 13.21 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003482/0.124, allocations: 249.2 kB / 333.6 MB, free: 12.96 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.191e-05/0.124, allocations: 11.94 kB / 333.6 MB, free: 12.95 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.124, allocations: 0 / 333.6 MB, free: 12.95 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/0.124, allocations: 4 kB / 333.6 MB, free: 12.95 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001515/0.1242, allocations: 39.91 kB / 333.7 MB, free: 12.91 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.1242, allocations: 4 kB / 333.7 MB, free: 12.9 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001048/0.1243, allocations: 31.97 kB / 333.7 MB, free: 12.87 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.266e-05/0.1244, allocations: 12 kB / 333.7 MB, free: 12.86 MB / 286.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.0001616/0.1245, allocations: 160.3 kB / 333.9 MB, free: 12.69 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.253e-05/0.1246, allocations: 11.81 kB / 333.9 MB, free: 12.68 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004217/0.125, allocations: 194.3 kB / 334.1 MB, free: 12.48 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.125, allocations: 8 kB / 334.1 MB, free: 12.48 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.125, allocations: 0 / 334.1 MB, free: 12.48 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.125, allocations: 0 / 334.1 MB, free: 12.48 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007047/0.1257, allocations: 0.5988 MB / 334.7 MB, free: 11.82 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.1258, allocations: 0 / 334.7 MB, free: 11.82 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.225e-05/0.1258, allocations: 15.94 kB / 334.7 MB, free: 11.8 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.17e-06/0.1258, allocations: 7.875 kB / 334.7 MB, free: 11.79 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.851e-05/0.1259, allocations: 11.98 kB / 334.7 MB, free: 11.78 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.1259, allocations: 0 / 334.7 MB, free: 11.78 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1259, allocations: 0 / 334.7 MB, free: 11.78 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003502/0.1263, allocations: 267.4 kB / 335 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.017e-05/0.1263, allocations: 100.8 kB / 335.1 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.688e-05/0.1264, allocations: 4 kB / 335.1 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.531e-05/0.1265, allocations: 4 kB / 335.1 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.715e-05/0.1266, allocations: 19.97 kB / 335.1 MB, free: 11.36 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.422e-05/0.1266, allocations: 12 kB / 335.1 MB, free: 11.35 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.398e-05/0.1266, allocations: 96.53 kB / 335.2 MB, free: 11.25 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1267, allocations: 0 / 335.2 MB, free: 11.25 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003011/0.127, allocations: 55.83 kB / 335.3 MB, free: 11.2 MB / 286.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.0002132/0.1272, allocations: 111.1 kB / 335.4 MB, free: 11.08 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000384/0.1276, allocations: 195.7 kB / 335.6 MB, free: 10.89 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1276, allocations: 0 / 335.6 MB, free: 10.89 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001866/0.1278, allocations: 79.92 kB / 335.6 MB, free: 10.81 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002805/0.1281, allocations: 24.53 kB / 335.7 MB, free: 10.79 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006673/0.1287, allocations: 408.7 kB / 336.1 MB, free: 10.36 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000305/0.1291, allocations: 0.74 MB / 336.8 MB, free: 9.598 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.793e-05/0.1292, allocations: 37.88 kB / 336.8 MB, free: 9.562 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.556e-05/0.1292, allocations: 23.38 kB / 336.9 MB, free: 9.539 MB / 286.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1292, allocations: 0 / 336.9 MB, free: 9.539 MB / 286.1 MB Notification: Performance of Templates: time 0.004778/0.134, allocations: 1.817 MB / 338.7 MB, free: 7.73 MB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1)