Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) 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_Synchronous.WorkInProgress.Tests.TestStateSpace,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006264/0.006264, allocations: 88.41 kB / 15.91 MB, free: 6.301 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.00133/0.00133, allocations: 199.3 kB / 16.83 MB, free: 6.234 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.683/1.683, allocations: 205.1 MB / 222.7 MB, free: 4.793 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09614/0.09613, allocations: 12.6 MB / 282.6 MB, free: 8.895 MB / 238.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: Modelica_Synchronous 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.001841/0.001841, allocations: 83.89 kB / 342.8 MB, free: 21.2 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1444/0.1463, allocations: 49.4 MB / 392.2 MB, free: 3.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace): time 0.006257/0.1526, allocations: 1.781 MB / 394 MB, free: 1.922 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001753/0.1544, allocations: 0.5425 MB / 394.5 MB, free: 1.371 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002113/0.1547, allocations: 4 kB / 394.5 MB, free: 1.367 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002642/0.155, allocations: 19.84 kB / 394.5 MB, free: 1.348 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00019/0.1552, allocations: 23.84 kB / 394.6 MB, free: 1.324 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000614/0.1559, allocations: 55.94 kB / 394.6 MB, free: 1.27 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003407/0.1562, allocations: 119.6 kB / 394.7 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000203/0.1564, allocations: 28.89 kB / 394.8 MB, free: 1.125 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002501/0.1567, allocations: 63.69 kB / 394.8 MB, free: 1.062 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003477/0.1571, allocations: 71.73 kB / 394.9 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.344e-05/0.1571, allocations: 8 kB / 394.9 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.54e-05/0.1572, allocations: 4 kB / 394.9 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001425/0.1573, allocations: 47.81 kB / 394.9 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001467/0.1575, allocations: 43.73 kB / 395 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002587/0.1578, allocations: 107.8 kB / 395.1 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.1578, allocations: 0 / 395.1 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1578, allocations: 0 / 395.1 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.335e-06/0.1578, allocations: 0 / 395.1 MB, free: 0.7852 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.001371/0.1592, allocations: 450.9 kB / 395.5 MB, free: 304 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.359e-05/0.1593, allocations: 8.031 kB / 395.5 MB, free: 296 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000114/0.1594, allocations: 16.75 kB / 395.6 MB, free: 280 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000418/0.1598, allocations: 204.1 kB / 395.8 MB, free: 36 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.63e-05/0.1599, allocations: 12.38 kB / 395.8 MB, free: 24 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.648e-05/0.1599, allocations: 8.359 kB / 395.8 MB, free: 16 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007576/0.1607, allocations: 213.1 kB / 396 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.721e-05/0.1607, allocations: 0 / 396 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.704e-05/0.1608, allocations: 8 kB / 396 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.595e-05/0.1608, allocations: 7.984 kB / 396 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002884/0.1611, allocations: 67.89 kB / 396.1 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008817/0.162, allocations: 341.5 kB / 396.4 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00039/0.1624, allocations: 145.1 kB / 396.5 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001899/0.1626, allocations: 65.69 kB / 396.6 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.908e-05/0.1627, allocations: 4 kB / 396.6 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003934/0.1631, allocations: 91.36 kB / 396.7 MB, free: 14.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 2.425e-06/0.1631, allocations: 4 kB / 396.7 MB, free: 14.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0007775/0.1639, allocations: 237.3 kB / 396.9 MB, free: 14.74 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/0.164, allocations: 85.11 kB / 397 MB, free: 14.64 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002061/0.1643, allocations: 162.1 kB / 397.2 MB, free: 14.47 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.178e-05/0.1643, allocations: 29.7 kB / 397.2 MB, free: 14.44 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.654e-05/0.1644, allocations: 100.1 kB / 397.3 MB, free: 14.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.708e-05/0.1645, allocations: 23.72 kB / 397.3 MB, free: 14.31 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.519e-05/0.1646, allocations: 37.7 kB / 397.4 MB, free: 14.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.1648, allocations: 330.8 kB / 397.7 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001257/0.1649, allocations: 35.97 kB / 397.7 MB, free: 13.9 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001964/0.1651, allocations: 108.4 kB / 397.8 MB, free: 13.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004224/0.1655, allocations: 157.3 kB / 398 MB, free: 13.58 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.975e-06/0.1656, allocations: 0 / 398 MB, free: 13.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005039/0.1661, allocations: 185.2 kB / 398.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.31e-05/0.1661, allocations: 8 kB / 398.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.423e-05/0.1661, allocations: 112 / 398.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.799e-05/0.1662, allocations: 7.938 kB / 398.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001776/0.1664, allocations: 23.92 kB / 398.2 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.421e-05/0.1664, allocations: 4.375 kB / 398.2 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001442/0.1665, allocations: 15.84 kB / 398.2 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.152e-05/0.1666, allocations: 8.344 kB / 398.2 MB, free: 13.32 MB / 302.1 MB Warning: Assuming fixed start value for the following 1 variables: stateSpace2.y[1]:DISCRETE(flow=false fixed = true ) "Connector of Real output signals" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 13 (sampler.firstTrigger,$PRE.sampler.firstTrigger,stateSpace2.firstTrigger,$PRE.stateSpace2.firstTrigger,stateSpace2.x[1],$PRE.stateSpace2.x[1],$PRE.stateSpace2.y[1],stateSpace2.y[1],stateSpace2.sampleTrigger,$whenCondition1,sampler.sampleTrigger,$whenCondition2,sampler.y) * Number of discrete states: 0 () * Number of clocked states: 1 (stateSpace1.x[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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.0003044/0.1669, allocations: 149.9 kB / 398.4 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001564/0.1671, allocations: 77.52 kB / 398.4 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.196e-05/0.1672, allocations: 16.72 kB / 398.5 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.1672, allocations: 7.984 kB / 398.5 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.435e-05/0.1672, allocations: 4 kB / 398.5 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.1672, allocations: 0 / 398.5 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008243/0.1681, allocations: 458.4 kB / 398.9 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.1681, allocations: 3.938 kB / 398.9 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001289/0.1682, allocations: 11.98 kB / 398.9 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.638e-05/0.1683, allocations: 4 kB / 398.9 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.952e-05/0.1683, allocations: 0 / 398.9 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.376e-06/0.1683, allocations: 3.938 kB / 398.9 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.471e-06/0.1683, allocations: 4 kB / 398.9 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006311/0.169, allocations: 288.2 kB / 399.2 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.116e-05/0.1691, allocations: 92.92 kB / 399.3 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.16e-05/0.1691, allocations: 7.984 kB / 399.3 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001865/0.1693, allocations: 11.94 kB / 399.3 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.13e-05/0.1694, allocations: 7.984 kB / 399.3 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.829e-05/0.1694, allocations: 7.984 kB / 399.4 MB, free: 12.08 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001419/0.1696, allocations: 123.1 kB / 399.5 MB, free: 11.96 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1696, allocations: 4 kB / 399.5 MB, free: 11.95 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005027/0.1701, allocations: 20 kB / 399.5 MB, free: 11.93 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 9 (sampler.sampleTrigger,stateSpace2.sampleTrigger,$whenCondition2,$whenCondition1,stateSpace2.firstTrigger,stateSpace2.y[1],stateSpace2.x[1],sampler.firstTrigger,sampler.y) * Number of discrete states: 1 (stateSpace2.x[1]) * Number of clocked states: 1 (stateSpace1.x[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 9 * 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.000184/0.1703, allocations: 103.2 kB / 399.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003853/0.1707, allocations: 123.8 kB / 399.7 MB, free: 11.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1707, allocations: 0 / 399.7 MB, free: 11.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000146/0.1709, allocations: 48.59 kB / 399.8 MB, free: 11.65 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005642/0.1715, allocations: 40.02 kB / 399.8 MB, free: 11.61 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008307/0.1723, allocations: 314.6 kB / 400.1 MB, free: 11.28 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004919/0.1728, allocations: 0.7238 MB / 400.8 MB, free: 10.53 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.121e-05/0.1729, allocations: 8.891 kB / 400.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.851e-05/0.173, allocations: 19.36 kB / 400.9 MB, free: 10.5 MB / 302.1 MB Notification: Performance of SimCode: time 9.32e-07/0.173, allocations: 0 / 400.9 MB, free: 10.5 MB / 302.1 MB Notification: Performance of Templates: time 0.005816/0.1788, allocations: 1.078 MB / 401.9 MB, free: 9.418 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.sim & ./Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.pipe 2>&1)