Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo", uses=false) Using package Modelica_StateGraph2 with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_StateGraph2.Examples.BasicStateGraphs.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample") translateModel(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001165/0.001165, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001358/0.001358, allocations: 193.7 kB / 16.25 MB, free: 6.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.388/1.388, allocations: 222.9 MB / 239.9 MB, free: 4.48 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.2405/0.2405, allocations: 13.54 MB / 303.6 MB, free: 0.6797 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001112/0.001112, allocations: 63.89 kB / 367.3 MB, free: 6.789 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1077, allocations: 52.69 MB / 420 MB, free: 2.062 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample): time 0.003366/0.1111, allocations: 1.845 MB / 421.8 MB, free: 204 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001663/0.1128, allocations: 0.826 MB / 422.7 MB, free: 15.37 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002421/0.1131, allocations: 7.938 kB / 422.7 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001237/0.1143, allocations: 0.5521 MB / 423.2 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001707/0.1145, allocations: 15.86 kB / 423.2 MB, free: 14.79 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo:12183:5-12189:3:writable] Warning: Usage of non-standard operator (not specified in the Modelica specification): Connections.uniqueRoot. Functionality might be partially supported but is not guaranteed. Notification: Performance of NFTyping.typeClassSections: time 0.0009009/0.1154, allocations: 215.1 kB / 423.4 MB, free: 14.58 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000676/0.1161, allocations: 443 kB / 423.9 MB, free: 14.15 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001173/0.1173, allocations: 0.5321 MB / 424.4 MB, free: 13.61 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003286/0.1176, allocations: 167.4 kB / 424.6 MB, free: 13.45 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002823/0.1179, allocations: 151.2 kB / 424.7 MB, free: 13.3 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001004/0.118, allocations: 32 kB / 424.7 MB, free: 13.27 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001792/0.1182, allocations: 63.92 kB / 424.8 MB, free: 13.21 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001283/0.1184, allocations: 91.69 kB / 424.9 MB, free: 13.12 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002352/0.1186, allocations: 175.1 kB / 425.1 MB, free: 12.95 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005494/0.1192, allocations: 410.7 kB / 425.5 MB, free: 12.54 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.1192, allocations: 4 kB / 425.5 MB, free: 12.54 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1192, allocations: 0 / 425.5 MB, free: 12.54 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.543e-05/0.1192, allocations: 0 / 425.5 MB, free: 12.54 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.0009937/0.1202, allocations: 0.6288 MB / 426.1 MB, free: 11.86 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.1203, allocations: 11.89 kB / 426.1 MB, free: 11.85 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001058/0.1204, allocations: 40.47 kB / 426.2 MB, free: 11.81 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004219/0.1208, allocations: 323.5 kB / 426.5 MB, free: 11.45 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.572e-05/0.1209, allocations: 33.38 kB / 426.5 MB, free: 11.42 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.166e-05/0.1209, allocations: 36.38 kB / 426.5 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007521/0.1217, allocations: 463.6 kB / 427 MB, free: 10.9 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/0.1217, allocations: 4 kB / 427 MB, free: 10.9 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.027e-05/0.1218, allocations: 20 kB / 427 MB, free: 10.88 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.42e-05/0.1218, allocations: 12 kB / 427 MB, free: 10.87 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004811/0.1223, allocations: 286.4 kB / 427.3 MB, free: 10.59 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00224/0.1245, allocations: 1.879 MB / 429.2 MB, free: 8.539 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003565/0.1249, allocations: 390.3 kB / 429.6 MB, free: 8.094 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.277e-05/0.125, allocations: 60.84 kB / 429.6 MB, free: 8.031 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001066/0.1251, allocations: 93.03 kB / 429.7 MB, free: 7.922 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002806/0.1254, allocations: 107.4 kB / 429.8 MB, free: 7.805 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.884e-06/0.1254, allocations: 0 / 429.8 MB, free: 7.805 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004155/0.1258, allocations: 215.6 kB / 430 MB, free: 7.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.906e-05/0.1259, allocations: 110.8 kB / 430.1 MB, free: 7.457 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002437/0.1262, allocations: 254.8 kB / 430.4 MB, free: 7.199 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.278e-05/0.1262, allocations: 33.7 kB / 430.4 MB, free: 7.16 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001482/0.1264, allocations: 196.3 kB / 430.6 MB, free: 6.965 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.564e-05/0.1264, allocations: 51.44 kB / 430.7 MB, free: 6.914 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001442/0.1266, allocations: 114 kB / 430.8 MB, free: 6.797 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.1267, allocations: 330.8 kB / 431.1 MB, free: 6.465 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001172/0.1268, allocations: 68.84 kB / 431.2 MB, free: 6.395 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000216/0.127, allocations: 223.1 kB / 431.4 MB, free: 6.109 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002963/0.1273, allocations: 276.9 kB / 431.7 MB, free: 5.777 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.1274, allocations: 0 / 431.7 MB, free: 5.777 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004307/0.1278, allocations: 317.2 kB / 432 MB, free: 5.461 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.232e-05/0.1278, allocations: 7.984 kB / 432 MB, free: 5.453 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.1278, allocations: 8 kB / 432 MB, free: 5.445 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.018e-05/0.1279, allocations: 4 kB / 432 MB, free: 5.441 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001047/0.128, allocations: 27.92 kB / 432 MB, free: 5.414 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.266e-05/0.128, allocations: 7.938 kB / 432 MB, free: 5.406 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001887/0.1282, allocations: 43.67 kB / 432.1 MB, free: 5.363 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.894e-05/0.1282, allocations: 12 kB / 432.1 MB, free: 5.352 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 46 ($PRE.T1.enableFire,$PRE.T2.enableFire,$PRE.T3.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,step2.oldActive,$PRE.step2.oldActive,step3.oldActive,$PRE.step3.oldActive,T3.t_start,$PRE.T3.t_start,T3.enableFire,T3.fire,step3.outport_fire,step3.inport_fire,step3.newActive,$PRE.step3.newActive,T2.t_start,$PRE.T2.t_start,T2.enableFire,T2.fire,step2.outport_fire,step2.inport_fire,step2.newActive,$PRE.step2.newActive,T1.enableFire,T1.condition,initialStep.outport_fire,initialStep.inport_fire,initialStep.newActive,$PRE.initialStep.newActive,initialStep.active,$whenCondition1,$whenCondition2,T3.condition,T2.condition,initialStep.connectorNode.node.suspend,initialStep.connectorNode.node.resume,T3.outPort.checkOneDelayedTransitionPerLoop,step2.inPort[1].checkOneDelayedTransitionPerLoop,step2.outPort[1].checkOneDelayedTransitionPerLoop,T2.outPort.checkOneDelayedTransitionPerLoop,step3.outPort[1].checkOneDelayedTransitionPerLoop,step3.inPort[1].checkUnaryConnection,step2.inPort[1].checkUnaryConnection,initialStep.inPort[1].checkUnaryConnection) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * 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.0001965/0.1284, allocations: 207.1 kB / 432.3 MB, free: 5.141 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.331e-05/0.1285, allocations: 19.81 kB / 432.3 MB, free: 5.121 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000295/0.1288, allocations: 191.3 kB / 432.5 MB, free: 4.926 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.1288, allocations: 0 / 432.5 MB, free: 4.926 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.1288, allocations: 0 / 432.5 MB, free: 4.926 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.1288, allocations: 0 / 432.5 MB, free: 4.926 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007696/0.1296, allocations: 0.6276 MB / 433.1 MB, free: 4.242 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.1296, allocations: 0 / 433.1 MB, free: 4.242 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.771e-05/0.1296, allocations: 11.92 kB / 433.1 MB, free: 4.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/0.1296, allocations: 7.875 kB / 433.1 MB, free: 4.223 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.575e-05/0.1297, allocations: 8 kB / 433.1 MB, free: 4.215 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.1297, allocations: 0 / 433.1 MB, free: 4.215 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1297, allocations: 0 / 433.1 MB, free: 4.215 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000273/0.1299, allocations: 270.3 kB / 433.4 MB, free: 3.938 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.775e-05/0.13, allocations: 104.9 kB / 433.5 MB, free: 3.816 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.271e-05/0.1301, allocations: 7.938 kB / 433.5 MB, free: 3.809 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001306/0.1302, allocations: 15.97 kB / 433.5 MB, free: 3.793 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.006e-05/0.1303, allocations: 31.77 kB / 433.6 MB, free: 3.762 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.499e-05/0.1304, allocations: 4 kB / 433.6 MB, free: 3.758 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001314/0.1305, allocations: 151.2 kB / 433.7 MB, free: 3.609 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1305, allocations: 0 / 433.7 MB, free: 3.609 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000402/0.1309, allocations: 75.59 kB / 433.8 MB, free: 3.535 MB / 366.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: 23 (initialStep.inport_fire,initialStep.outport_fire,step2.outport_fire,T2.enableFire,T3.enableFire,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,T1.condition,T1.enableFire,step2.newActive,step2.oldActive,step2.inport_fire,T2.fire,T2.t_start,step3.newActive,step3.oldActive,step3.inport_fire,step3.outport_fire,T3.fire,T3.t_start) * Number of discrete states: 3 (step3.newActive,step2.newActive,initialStep.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.000182/0.1311, allocations: 116.9 kB / 433.9 MB, free: 3.414 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003771/0.1315, allocations: 208.5 kB / 434.1 MB, free: 3.211 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.1315, allocations: 0 / 434.1 MB, free: 3.211 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001122/0.1316, allocations: 71.91 kB / 434.2 MB, free: 3.141 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003001/0.1319, allocations: 30.33 kB / 434.2 MB, free: 3.113 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008624/0.1328, allocations: 0.5983 MB / 434.8 MB, free: 2.488 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003861/0.1332, allocations: 0.7877 MB / 435.6 MB, free: 1.668 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001204/0.1333, allocations: 38.95 kB / 435.6 MB, free: 1.633 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.356e-05/0.1334, allocations: 23.44 kB / 435.6 MB, free: 1.609 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1334, allocations: 4 kB / 435.6 MB, free: 1.605 MB / 366.1 MB Notification: Performance of Templates: time 0.1856/0.319, allocations: 2.172 MB / 437.8 MB, free: 57.43 MB / 366.1 MB make -j1 -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.makefile (rm -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.pipe ; mkfifo Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.pipe ; head -c 1048576 < Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.pipe >> ../files/Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.sim & ./Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.pipe 2>&1)