Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.007744/0.007744, allocations: 99.92 kB / 15.73 MB, free: 6.047 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.001436/0.001436, allocations: 185.3 kB / 16.67 MB, free: 5.977 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.661/1.661, allocations: 205.1 MB / 222.6 MB, free: 4.523 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.001542/0.001542, allocations: 49.3 kB / 326.5 MB, free: 14.36 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.115, allocations: 46.63 MB / 373.1 MB, free: 1.348 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003882/0.1189, allocations: 1.652 MB / 374.8 MB, free: 15.68 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008114/0.1197, allocations: 259.2 kB / 375.1 MB, free: 15.43 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001457/0.1199, allocations: 3.938 kB / 375.1 MB, free: 15.42 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001409/0.1201, allocations: 27.73 kB / 375.1 MB, free: 15.39 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.152e-05/0.1202, allocations: 23.75 kB / 375.1 MB, free: 15.37 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004838/0.1207, allocations: 111.8 kB / 375.2 MB, free: 15.26 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004621/0.1211, allocations: 271.5 kB / 375.5 MB, free: 15 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004288/0.1216, allocations: 190.9 kB / 375.7 MB, free: 14.8 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001433/0.1217, allocations: 95.69 kB / 375.8 MB, free: 14.71 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001662/0.1219, allocations: 95.55 kB / 375.9 MB, free: 14.62 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.458e-05/0.122, allocations: 27.94 kB / 375.9 MB, free: 14.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.818e-05/0.1221, allocations: 31.98 kB / 375.9 MB, free: 14.56 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.974e-05/0.1222, allocations: 67.77 kB / 376 MB, free: 14.49 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001145/0.1223, allocations: 99.45 kB / 376.1 MB, free: 14.39 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003574/0.1227, allocations: 251.2 kB / 376.3 MB, free: 14.15 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.762e-06/0.1227, allocations: 0 / 376.3 MB, free: 14.15 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1227, allocations: 3.938 kB / 376.3 MB, free: 14.14 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.13e-05/0.1227, allocations: 0 / 376.3 MB, free: 14.14 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.0007227/0.1234, allocations: 493.8 kB / 376.8 MB, free: 13.61 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.1235, allocations: 8.031 kB / 376.8 MB, free: 13.61 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.574e-05/0.1235, allocations: 24.75 kB / 376.8 MB, free: 13.58 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002978/0.1238, allocations: 239.9 kB / 377.1 MB, free: 13.31 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.403e-05/0.1239, allocations: 24.94 kB / 377.1 MB, free: 13.29 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.486e-05/0.1239, allocations: 24.38 kB / 377.1 MB, free: 13.26 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004385/0.1244, allocations: 266.6 kB / 377.4 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.502e-05/0.1244, allocations: 8.172 kB / 377.4 MB, free: 12.97 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.521e-05/0.1244, allocations: 11.94 kB / 377.4 MB, free: 12.96 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.123e-05/0.1244, allocations: 8 kB / 377.4 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003098/0.1248, allocations: 169.5 kB / 377.6 MB, free: 12.79 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001201/0.126, allocations: 0.9633 MB / 378.5 MB, free: 11.76 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002845/0.1263, allocations: 158.7 kB / 378.7 MB, free: 11.59 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000118/0.1264, allocations: 72.83 kB / 378.8 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.368e-05/0.1264, allocations: 4 kB / 378.8 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001901/0.1266, allocations: 127 kB / 378.9 MB, free: 11.38 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.613e-06/0.1266, allocations: 0 / 378.9 MB, free: 11.38 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004402/0.1271, allocations: 209.3 kB / 379.1 MB, free: 11.17 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.597e-05/0.1271, allocations: 55.41 kB / 379.2 MB, free: 11.1 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001362/0.1273, allocations: 153.9 kB / 379.3 MB, free: 10.94 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.946e-05/0.1273, allocations: 33.7 kB / 379.3 MB, free: 10.9 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.801e-05/0.1274, allocations: 148.5 kB / 379.5 MB, free: 10.75 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.943e-05/0.1275, allocations: 59.2 kB / 379.5 MB, free: 10.69 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001144/0.1276, allocations: 82 kB / 379.6 MB, free: 10.6 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.1277, allocations: 330.8 kB / 379.9 MB, free: 10.27 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000113/0.1279, allocations: 64.56 kB / 380 MB, free: 10.21 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001546/0.128, allocations: 141.7 kB / 380.1 MB, free: 10.04 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002378/0.1283, allocations: 192.4 kB / 380.3 MB, free: 9.82 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.1283, allocations: 0 / 380.3 MB, free: 9.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004188/0.1287, allocations: 249.2 kB / 380.6 MB, free: 9.57 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.805e-05/0.1287, allocations: 9.094 kB / 380.6 MB, free: 9.562 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.1288, allocations: 3.938 kB / 380.6 MB, free: 9.559 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.897e-05/0.1288, allocations: 4 kB / 380.6 MB, free: 9.555 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001387/0.1289, allocations: 40.2 kB / 380.6 MB, free: 9.516 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.297e-06/0.1289, allocations: 4 kB / 380.6 MB, free: 9.512 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001052/0.1291, allocations: 27.73 kB / 380.7 MB, free: 9.484 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.189e-05/0.1291, allocations: 16 kB / 380.7 MB, free: 9.469 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.0001498/0.1292, allocations: 156.3 kB / 380.8 MB, free: 9.305 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.725e-05/0.1293, allocations: 11.91 kB / 380.8 MB, free: 9.293 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003516/0.1296, allocations: 206.5 kB / 381 MB, free: 9.082 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.1297, allocations: 4 kB / 381 MB, free: 9.078 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.1297, allocations: 4 kB / 381 MB, free: 9.074 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.1297, allocations: 3.984 kB / 381.1 MB, free: 9.07 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006897/0.1304, allocations: 0.5753 MB / 381.6 MB, free: 8.434 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.1304, allocations: 0 / 381.6 MB, free: 8.434 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.771e-05/0.1305, allocations: 15.98 kB / 381.6 MB, free: 8.418 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.034e-06/0.1305, allocations: 11.88 kB / 381.7 MB, free: 8.406 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.482e-05/0.1305, allocations: 4 kB / 381.7 MB, free: 8.402 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.1305, allocations: 3.938 kB / 381.7 MB, free: 8.398 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.1305, allocations: 0 / 381.7 MB, free: 8.398 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002854/0.1308, allocations: 275.7 kB / 381.9 MB, free: 8.113 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.752e-05/0.1309, allocations: 92.86 kB / 382 MB, free: 8.004 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.029e-05/0.1309, allocations: 15.92 kB / 382 MB, free: 7.988 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.603e-05/0.131, allocations: 4 kB / 382 MB, free: 7.984 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.993e-05/0.1311, allocations: 19.97 kB / 382.1 MB, free: 7.965 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.474e-05/0.1311, allocations: 8 kB / 382.1 MB, free: 7.957 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.527e-05/0.1312, allocations: 99.77 kB / 382.2 MB, free: 7.859 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1312, allocations: 4 kB / 382.2 MB, free: 7.855 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003052/0.1315, allocations: 51.84 kB / 382.2 MB, free: 7.805 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.0001697/0.1317, allocations: 123.3 kB / 382.3 MB, free: 7.676 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003585/0.132, allocations: 183.9 kB / 382.5 MB, free: 7.496 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.132, allocations: 0 / 382.5 MB, free: 7.496 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001339/0.1322, allocations: 80.47 kB / 382.6 MB, free: 7.418 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002818/0.1325, allocations: 27.88 kB / 382.6 MB, free: 7.391 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006466/0.1331, allocations: 339.7 kB / 383 MB, free: 7.035 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003405/0.1335, allocations: 0.7323 MB / 383.7 MB, free: 6.277 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001116/0.1336, allocations: 29.95 kB / 383.7 MB, free: 6.246 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.474e-05/0.1337, allocations: 23.42 kB / 383.7 MB, free: 6.223 MB / 318.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1337, allocations: 0 / 383.7 MB, free: 6.223 MB / 318.1 MB Notification: Performance of Templates: time 0.005285/0.139, allocations: 1.943 MB / 385.7 MB, free: 4.277 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1)