Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001495/0.001495, allocations: 109.7 kB / 18.84 MB, free: 3.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001928/0.001928, allocations: 192.6 kB / 22.11 MB, free: 5.117 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.506/1.506, allocations: 225.6 MB / 250.8 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.1287/0.1287, allocations: 13.79 MB / 319.8 MB, free: 10.91 MB / 254.1 MB " [Timeout remaining time 180] 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_Variant4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4") translateModel(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00204/0.00204, allocations: 67.89 kB / 446.6 MB, free: 14.92 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1517/0.1537, allocations: 55.67 MB / 0.4905 GB, free: 7.16 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4): time 0.003902/0.1576, allocations: 2.139 MB / 0.4926 GB, free: 5.008 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002094/0.1597, allocations: 0.9893 MB / 0.4936 GB, free: 4.012 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001857/0.1599, allocations: 19.81 kB / 0.4936 GB, free: 3.992 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00164/0.1615, allocations: 0.812 MB / 0.4944 GB, free: 3.176 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000147/0.1617, allocations: 47.47 kB / 0.4944 GB, free: 3.129 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.001058/0.1627, allocations: 335.4 kB / 0.4947 GB, free: 2.801 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008933/0.1636, allocations: 0.6042 MB / 0.4953 GB, free: 2.195 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001015/0.1647, allocations: 0.5625 MB / 0.4959 GB, free: 1.621 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003272/0.165, allocations: 239.1 kB / 0.4961 GB, free: 1.387 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003262/0.1653, allocations: 222.9 kB / 0.4963 GB, free: 1.168 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.968e-05/0.1654, allocations: 48 kB / 0.4964 GB, free: 1.121 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000167/0.1656, allocations: 71.92 kB / 0.4964 GB, free: 1.051 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001714/0.1657, allocations: 131.6 kB / 0.4966 GB, free: 0.9219 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002717/0.166, allocations: 238.6 kB / 0.4968 GB, free: 0.6875 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008601/0.1669, allocations: 0.6107 MB / 0.4974 GB, free: 76 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.155e-06/0.1669, allocations: 0 / 0.4974 GB, free: 76 kB / 366.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.1669, allocations: 0 / 0.4974 GB, free: 76 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.216e-05/0.1669, allocations: 4 kB / 0.4974 GB, free: 72 kB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.001424/0.1683, allocations: 0.7034 MB / 0.4981 GB, free: 15.33 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.383e-05/0.1684, allocations: 8.031 kB / 0.4981 GB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001671/0.1685, allocations: 64.56 kB / 0.4982 GB, free: 15.26 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000736/0.1693, allocations: 325.4 kB / 0.4985 GB, free: 14.92 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.642e-05/0.1693, allocations: 45.69 kB / 0.4985 GB, free: 14.88 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.563e-05/0.1694, allocations: 64.31 kB / 0.4986 GB, free: 14.81 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001051/0.1705, allocations: 0.6161 MB / 0.4992 GB, free: 14.15 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.806e-05/0.1705, allocations: 3.984 kB / 0.4992 GB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.263e-05/0.1705, allocations: 24 kB / 0.4992 GB, free: 14.12 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.757e-05/0.1706, allocations: 12 kB / 0.4992 GB, free: 14.11 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007528/0.1713, allocations: 415.6 kB / 0.4996 GB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003194/0.1745, allocations: 2.346 MB / 0.5019 GB, free: 11.24 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004878/0.175, allocations: 217.9 kB / 0.5021 GB, free: 11.01 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000156/0.1752, allocations: 93.67 kB / 0.5022 GB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008945/0.1761, allocations: 0.6043 MB / 0.5028 GB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002768/0.1763, allocations: 127.5 kB / 0.5029 GB, free: 10.15 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 1.903e-06/0.1763, allocations: 0 / 0.5029 GB, free: 10.15 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.0005769/0.1769, allocations: 262.4 kB / 0.5032 GB, free: 9.887 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.018e-05/0.177, allocations: 67.33 kB / 0.5032 GB, free: 9.809 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003646/0.1773, allocations: 313.6 kB / 0.5035 GB, free: 9.496 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.721e-05/0.1774, allocations: 37.7 kB / 0.5036 GB, free: 9.453 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000247/0.1777, allocations: 269 kB / 0.5038 GB, free: 9.184 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.831e-05/0.1777, allocations: 71.52 kB / 0.5039 GB, free: 9.113 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001749/0.1779, allocations: 134.1 kB / 0.504 GB, free: 8.977 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002892/0.1782, allocations: 342.8 kB / 0.5043 GB, free: 8.633 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000235/0.1784, allocations: 92.89 kB / 0.5044 GB, free: 8.543 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004918/0.1789, allocations: 272.8 kB / 0.5047 GB, free: 8.195 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005734/0.1795, allocations: 367.3 kB / 0.505 GB, free: 7.754 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.935e-06/0.1795, allocations: 4 kB / 0.505 GB, free: 7.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0006434/0.1801, allocations: 400.8 kB / 0.5054 GB, free: 7.352 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.574e-05/0.1802, allocations: 8 kB / 0.5054 GB, free: 7.344 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.541e-05/0.1802, allocations: 8.812 kB / 0.5054 GB, free: 7.336 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.929e-05/0.1802, allocations: 8 kB / 0.5054 GB, free: 7.328 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001563/0.1804, allocations: 47.8 kB / 0.5055 GB, free: 7.281 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.811e-05/0.1804, allocations: 11.98 kB / 0.5055 GB, free: 7.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001922/0.1806, allocations: 43.73 kB / 0.5055 GB, free: 7.227 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.552e-05/0.1806, allocations: 20 kB / 0.5056 GB, free: 7.207 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 55 ($PRE.T1.enableFire,$PRE.T2.enableFire,$PRE.T3.enableFire,$PRE.T4.enableFire,step4.oldActive,$PRE.step4.oldActive,step3.oldActive,$PRE.step3.oldActive,step2.oldActive,$PRE.step2.oldActive,initialStep.oldActive,$PRE.initialStep.oldActive,greaterEqual1.y,timer2.entryTime,$PRE.timer2.entryTime,T4.enableFire,step4.outport_fire,step4.inport_fire,step4.newActive,$PRE.step4.newActive,greaterEqual.y,timer1.entryTime,$PRE.timer1.entryTime,T3.enableFire,step3.inport_fire,step3.newActive,$PRE.step3.newActive,step3.active,T2.enableFire,step2.inport_fire,step2.newActive,$PRE.step2.newActive,step2.active,T1.enableFire,T1.condition,initialStep.inport_fire,initialStep.newActive,$PRE.initialStep.newActive,initialStep.active,$whenCondition1,$whenCondition2,step4.inPort[1].checkOneDelayedTransitionPerLoop,step4.outPort[1].checkOneDelayedTransitionPerLoop,T3.condition,initialStep.connectorNode.node.suspend,initialStep.connectorNode.node.resume,T4.condition,T2.condition,T3.outPort.checkOneDelayedTransitionPerLoop,step2.inPort[1].checkOneDelayedTransitionPerLoop,step3.inPort[1].checkOneDelayedTransitionPerLoop,step4.inPort[1].checkUnaryConnection,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 (61): * Single equations (assignments): 61 * 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.0003124/0.1809, allocations: 218.9 kB / 0.5058 GB, free: 6.98 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.666e-05/0.181, allocations: 31.78 kB / 0.5058 GB, free: 6.949 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004612/0.1815, allocations: 245 kB / 0.506 GB, free: 6.699 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.1815, allocations: 0 / 0.506 GB, free: 6.699 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1815, allocations: 4 kB / 0.506 GB, free: 6.695 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.662e-06/0.1815, allocations: 3.984 kB / 0.506 GB, free: 6.691 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001069/0.1825, allocations: 0.7007 MB / 0.5067 GB, free: 5.941 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.1825, allocations: 0 / 0.5067 GB, free: 5.941 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.422e-05/0.1826, allocations: 8 kB / 0.5067 GB, free: 5.934 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.1826, allocations: 0 / 0.5067 GB, free: 5.934 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.645e-05/0.1826, allocations: 4 kB / 0.5067 GB, free: 5.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.072e-06/0.1826, allocations: 19.86 kB / 0.5068 GB, free: 5.91 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.1826, allocations: 0 / 0.5068 GB, free: 5.91 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004003/0.183, allocations: 312.6 kB / 0.5071 GB, free: 5.586 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001186/0.1831, allocations: 43.72 kB / 0.5071 GB, free: 5.543 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.241e-05/0.1832, allocations: 8 kB / 0.5071 GB, free: 5.535 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.33e-05/0.1833, allocations: 4 kB / 0.5071 GB, free: 5.531 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.96e-05/0.1833, allocations: 31.94 kB / 0.5071 GB, free: 5.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.656e-05/0.1834, allocations: 12 kB / 0.5071 GB, free: 5.488 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002835/0.1836, allocations: 173.2 kB / 0.5073 GB, free: 5.32 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1836, allocations: 0 / 0.5073 GB, free: 5.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000441/0.1841, allocations: 107.6 kB / 0.5074 GB, free: 5.215 MB / 382.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: 27 (initialStep.inport_fire,step3.active,step2.active,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,T1.condition,T1.enableFire,step2.newActive,step2.oldActive,step2.inport_fire,T2.enableFire,step3.newActive,step3.oldActive,step3.inport_fire,T3.enableFire,timer1.entryTime,greaterEqual.y,step4.newActive,step4.oldActive,step4.inport_fire,step4.outport_fire,T4.enableFire,timer2.entryTime,greaterEqual1.y) * Number of discrete states: 4 (initialStep.newActive,step2.newActive,step3.newActive,step4.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.0001923/0.1843, allocations: 117.1 kB / 0.5075 GB, free: 5.094 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004354/0.1847, allocations: 248.2 kB / 0.5078 GB, free: 4.852 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1847, allocations: 0 / 0.5078 GB, free: 4.852 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001383/0.1849, allocations: 75.91 kB / 0.5078 GB, free: 4.777 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003183/0.1852, allocations: 39.42 kB / 0.5079 GB, free: 4.742 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001186/0.1864, allocations: 0.6613 MB / 0.5085 GB, free: 4.051 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006338/0.187, allocations: 0.8418 MB / 0.5093 GB, free: 3.184 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00014/0.1871, allocations: 47.25 kB / 0.5094 GB, free: 3.137 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.387e-05/0.1872, allocations: 31.42 kB / 0.5094 GB, free: 3.109 MB / 382.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1872, allocations: 4 kB / 0.5094 GB, free: 3.105 MB / 382.1 MB Notification: Performance of Templates: time 0.008091/0.1953, allocations: 2.623 MB / 0.512 GB, free: 0.5 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.makefile [Timeout 660] (rm -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.pipe ; mkfifo Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.pipe ; head -c 1048576 < Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.pipe >> ../files/Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.sim & ./Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.30922597553581] Failed to read output from testmodel.py, exit status != 0: 0.484298687428236 0.498662201 0.329010764 Calling exit ...