Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00958/0.00958, allocations: 100.7 kB / 15.73 MB, free: 6.438 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.001883/0.001884, allocations: 194.9 kB / 16.68 MB, free: 6.355 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.86/1.86, allocations: 205.1 MB / 222.5 MB, free: 4.512 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.001282/0.001282, allocations: 54.08 kB / 326.5 MB, free: 14.44 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1206, allocations: 46.62 MB / 373.1 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002871/0.1235, allocations: 1.47 MB / 374.6 MB, free: 15.85 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006654/0.1242, allocations: 247.1 kB / 374.9 MB, free: 15.61 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.539e-05/0.1243, allocations: 7.938 kB / 374.9 MB, free: 15.6 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000136/0.1244, allocations: 27.73 kB / 374.9 MB, free: 15.57 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.159e-05/0.1245, allocations: 15.81 kB / 374.9 MB, free: 15.55 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004328/0.1249, allocations: 119.8 kB / 375 MB, free: 15.44 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003983/0.1254, allocations: 255.6 kB / 375.3 MB, free: 15.19 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003185/0.1257, allocations: 158.4 kB / 375.4 MB, free: 15.03 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001141/0.1258, allocations: 83.77 kB / 375.5 MB, free: 14.95 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001395/0.1259, allocations: 103.5 kB / 375.6 MB, free: 14.85 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.248e-05/0.126, allocations: 24 kB / 375.6 MB, free: 14.82 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.366e-05/0.1261, allocations: 32 kB / 375.7 MB, free: 14.79 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.846e-05/0.1262, allocations: 43.91 kB / 375.7 MB, free: 14.75 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001057/0.1263, allocations: 107.4 kB / 375.8 MB, free: 14.64 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003101/0.1266, allocations: 239.1 kB / 376 MB, free: 14.41 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.1266, allocations: 0 / 376 MB, free: 14.41 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.1266, allocations: 4 kB / 376 MB, free: 14.41 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.1266, allocations: 0 / 376 MB, free: 14.41 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0006994/0.1273, allocations: 478.6 kB / 376.5 MB, free: 13.89 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/0.1274, allocations: 12.03 kB / 376.5 MB, free: 13.88 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.534e-05/0.1275, allocations: 24.66 kB / 376.6 MB, free: 13.86 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003463/0.1278, allocations: 224.1 kB / 376.8 MB, free: 13.6 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.589e-05/0.1279, allocations: 24.88 kB / 376.8 MB, free: 13.57 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.229e-05/0.1279, allocations: 28.38 kB / 376.8 MB, free: 13.54 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004163/0.1284, allocations: 244 kB / 377.1 MB, free: 13.29 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.1284, allocations: 192 / 377.1 MB, free: 13.29 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.027e-05/0.1284, allocations: 15.94 kB / 377.1 MB, free: 13.28 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.455e-06/0.1284, allocations: 4 kB / 377.1 MB, free: 13.27 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003617/0.1288, allocations: 161.6 kB / 377.2 MB, free: 13.11 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000977/0.1298, allocations: 0.7089 MB / 377.9 MB, free: 12.35 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002972/0.1301, allocations: 166.8 kB / 378.1 MB, free: 12.18 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001292/0.1302, allocations: 76.83 kB / 378.2 MB, free: 12.1 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.153e-05/0.1303, allocations: 4 kB / 378.2 MB, free: 12.1 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001947/0.1305, allocations: 127 kB / 378.3 MB, free: 11.96 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.462e-06/0.1305, allocations: 4 kB / 378.3 MB, free: 11.96 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004364/0.1309, allocations: 213.3 kB / 378.5 MB, free: 11.74 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.97e-05/0.131, allocations: 59.39 kB / 378.6 MB, free: 11.67 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001163/0.1311, allocations: 145.9 kB / 378.7 MB, free: 11.52 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.299e-05/0.1311, allocations: 41.69 kB / 378.8 MB, free: 11.47 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.924e-05/0.1313, allocations: 132.6 kB / 378.9 MB, free: 11.34 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000102/0.1314, allocations: 63.2 kB / 379 MB, free: 11.27 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.245e-05/0.1315, allocations: 70.02 kB / 379 MB, free: 11.2 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.1316, allocations: 334.8 kB / 379.4 MB, free: 10.86 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001134/0.1317, allocations: 60.62 kB / 379.4 MB, free: 10.8 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002025/0.1319, allocations: 128.1 kB / 379.5 MB, free: 10.65 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003062/0.1322, allocations: 178.7 kB / 379.7 MB, free: 10.45 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1323, allocations: 0 / 379.7 MB, free: 10.45 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003528/0.1326, allocations: 245.2 kB / 380 MB, free: 10.21 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.1326, allocations: 4 kB / 380 MB, free: 10.2 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.1327, allocations: 4 kB / 380 MB, free: 10.2 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.236e-05/0.1327, allocations: 4 kB / 380 MB, free: 10.2 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001388/0.1328, allocations: 35.86 kB / 380 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.075e-05/0.1328, allocations: 3.984 kB / 380 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.547e-05/0.1329, allocations: 27.69 kB / 380 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.623e-05/0.133, allocations: 16 kB / 380 MB, free: 10.11 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.000152/0.1332, allocations: 154 kB / 380.2 MB, free: 9.953 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.892e-05/0.1332, allocations: 19.83 kB / 380.2 MB, free: 9.934 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003812/0.1336, allocations: 202.2 kB / 380.4 MB, free: 9.73 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.1336, allocations: 3.984 kB / 380.4 MB, free: 9.727 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.1336, allocations: 0 / 380.4 MB, free: 9.727 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.1336, allocations: 0 / 380.4 MB, free: 9.727 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007395/0.1344, allocations: 0.5606 MB / 381 MB, free: 9.109 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.1344, allocations: 4 kB / 381 MB, free: 9.105 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.634e-05/0.1345, allocations: 16 kB / 381 MB, free: 9.09 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.1345, allocations: 0 / 381 MB, free: 9.09 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.072e-05/0.1345, allocations: 7.984 kB / 381 MB, free: 9.082 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.889e-06/0.1345, allocations: 11.92 kB / 381 MB, free: 9.07 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.1345, allocations: 3.938 kB / 381 MB, free: 9.066 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003082/0.1348, allocations: 279.6 kB / 381.3 MB, free: 8.777 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.797e-05/0.1349, allocations: 88.95 kB / 381.4 MB, free: 8.672 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.924e-05/0.1349, allocations: 12 kB / 381.4 MB, free: 8.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.323e-05/0.135, allocations: 4 kB / 381.4 MB, free: 8.656 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.479e-05/0.1351, allocations: 27.91 kB / 381.4 MB, free: 8.629 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.677e-05/0.1351, allocations: 11.98 kB / 381.4 MB, free: 8.617 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.964e-05/0.1352, allocations: 95.27 kB / 381.5 MB, free: 8.523 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1352, allocations: 0 / 381.5 MB, free: 8.523 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003048/0.1355, allocations: 47.84 kB / 381.6 MB, free: 8.477 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 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,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 (26): * Single equations (assignments): 22 * 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.0001728/0.1357, allocations: 111.4 kB / 381.7 MB, free: 8.359 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003381/0.1361, allocations: 191.7 kB / 381.9 MB, free: 8.172 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.1361, allocations: 0 / 381.9 MB, free: 8.172 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001339/0.1362, allocations: 83.91 kB / 382 MB, free: 8.09 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003046/0.1365, allocations: 23.92 kB / 382 MB, free: 8.066 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000829/0.1374, allocations: 327.6 kB / 382.3 MB, free: 7.719 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004324/0.1378, allocations: 0.7403 MB / 383 MB, free: 6.953 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.722e-05/0.1379, allocations: 17.95 kB / 383.1 MB, free: 6.938 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.027e-05/0.138, allocations: 27.42 kB / 383.1 MB, free: 6.91 MB / 318.1 MB Notification: Performance of SimCode: time 5.81e-07/0.138, allocations: 7.938 kB / 383.1 MB, free: 6.902 MB / 318.1 MB Notification: Performance of Templates: time 0.005683/0.1437, allocations: 1.893 MB / 385 MB, free: 5.008 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.1_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1)