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.0008316/0.0008316, allocations: 96.7 kB / 15.74 MB, free: 424 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001035/0.001035, allocations: 174.3 kB / 16.62 MB, free: 6.434 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.996/1.996, allocations: 205.4 MB / 222.8 MB, free: 5.613 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.116/0.116, allocations: 12.59 MB / 283.7 MB, free: 8.695 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.0007473/0.0007474, allocations: 24 kB / 344.5 MB, free: 21.27 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1478/0.1485, allocations: 50.38 MB / 394.9 MB, free: 2.797 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace): time 0.003473/0.1521, allocations: 1.403 MB / 396.3 MB, free: 1.379 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001564/0.1537, allocations: 0.5273 MB / 396.8 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001992/0.154, allocations: 7.938 kB / 396.8 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001837/0.1542, allocations: 15.91 kB / 396.9 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001283/0.1543, allocations: 31.78 kB / 396.9 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004773/0.1548, allocations: 47.88 kB / 396.9 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002471/0.1551, allocations: 119.6 kB / 397.1 MB, free: 0.625 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001756/0.1553, allocations: 24.89 kB / 397.1 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002263/0.1555, allocations: 51.75 kB / 397.1 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002333/0.1557, allocations: 75.67 kB / 397.2 MB, free: 488 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.171e-05/0.1558, allocations: 4 kB / 397.2 MB, free: 484 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.059e-05/0.1558, allocations: 3.938 kB / 397.2 MB, free: 480 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.577e-05/0.1559, allocations: 39.89 kB / 397.3 MB, free: 440 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.653e-05/0.156, allocations: 41.64 kB / 397.3 MB, free: 392 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001717/0.1562, allocations: 76.08 kB / 397.4 MB, free: 316 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.624e-06/0.1562, allocations: 0 / 397.4 MB, free: 316 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.1562, allocations: 4 kB / 397.4 MB, free: 312 kB / 286.1 MB Notification: Performance of Transformations before backend: time 7.114e-06/0.1562, allocations: 0 / 397.4 MB, free: 312 kB / 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.0008795/0.1571, allocations: 426.8 kB / 397.8 MB, free: 15.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.294e-05/0.1572, allocations: 16.03 kB / 397.8 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.179e-05/0.1573, allocations: 11.81 kB / 397.8 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003334/0.1576, allocations: 210.8 kB / 398 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.119e-05/0.1576, allocations: 7.984 kB / 398 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.834e-05/0.1577, allocations: 8 kB / 398 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000536/0.1582, allocations: 200.8 kB / 398.2 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.1583, allocations: 3.984 kB / 398.2 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.174e-05/0.1583, allocations: 8 kB / 398.2 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.1583, allocations: 0 / 398.2 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001951/0.1585, allocations: 71.95 kB / 398.3 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006711/0.1592, allocations: 353.4 kB / 398.7 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002588/0.1594, allocations: 133.2 kB / 398.8 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001339/0.1596, allocations: 77.62 kB / 398.9 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.227e-05/0.1596, allocations: 0 / 398.9 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002391/0.1599, allocations: 99.34 kB / 399 MB, free: 14.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 2.394e-06/0.1599, allocations: 0 / 399 MB, free: 14.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0006123/0.1605, allocations: 245.3 kB / 399.2 MB, free: 14.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001171/0.1606, allocations: 85.11 kB / 399.3 MB, free: 14.17 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000186/0.1608, allocations: 162.1 kB / 399.4 MB, free: 14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.49e-05/0.1609, allocations: 25.7 kB / 399.5 MB, free: 13.97 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.097e-05/0.161, allocations: 104.5 kB / 399.6 MB, free: 13.86 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.261e-05/0.161, allocations: 31.84 kB / 399.6 MB, free: 13.83 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.943e-06/0.1611, allocations: 0 / 399.6 MB, free: 13.83 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001796/0.1612, allocations: 334.8 kB / 399.9 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.9e-05/0.1613, allocations: 35.92 kB / 400 MB, free: 13.46 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000157/0.1615, allocations: 108.4 kB / 400.1 MB, free: 13.32 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001315/0.1616, allocations: 55.97 kB / 400.1 MB, free: 13.27 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.721e-06/0.1617, allocations: 8 kB / 400.1 MB, free: 13.26 MB / 302.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003656/0.162, allocations: 173.2 kB / 400.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.41e-05/0.1621, allocations: 8.109 kB / 400.3 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/0.1621, allocations: 7.922 kB / 400.3 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.558e-05/0.1621, allocations: 8.344 kB / 400.3 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001473/0.1623, allocations: 27.92 kB / 400.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.184e-05/0.1623, allocations: 4 kB / 400.4 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001009/0.1624, allocations: 19.8 kB / 400.4 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.774e-05/0.1624, allocations: 8 kB / 400.4 MB, free: 13 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 ($PRE.sampler.firstTrigger,sampler.firstTrigger,$PRE.stateSpace2.firstTrigger,stateSpace2.firstTrigger,$PRE.stateSpace2.x[1],stateSpace2.x[1],$PRE.stateSpace2.y[1],stateSpace2.y[1],$whenCondition1,stateSpace2.sampleTrigger,$whenCondition2,sampler.sampleTrigger,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003507/0.1628, allocations: 149.5 kB / 400.5 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001349/0.1629, allocations: 73.58 kB / 400.6 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.521e-05/0.163, allocations: 24.7 kB / 400.6 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.163, allocations: 0 / 400.6 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.127e-06/0.163, allocations: 0 / 400.6 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.145e-05/0.1631, allocations: 4 kB / 400.6 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008728/0.1639, allocations: 446.2 kB / 401.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.164, allocations: 0 / 401.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.747e-05/0.1641, allocations: 27.92 kB / 401.1 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.1641, allocations: 0 / 401.1 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.88e-05/0.1641, allocations: 3.984 kB / 401.1 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.1641, allocations: 7.953 kB / 401.1 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.1641, allocations: 0 / 401.1 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000444/0.1646, allocations: 280.2 kB / 401.4 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.3e-05/0.1646, allocations: 96.91 kB / 401.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.723e-05/0.1647, allocations: 8.234 kB / 401.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000119/0.1648, allocations: 7.984 kB / 401.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.826e-05/0.1649, allocations: 11.89 kB / 401.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.677e-05/0.1649, allocations: 15.97 kB / 401.5 MB, free: 11.76 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001157/0.1651, allocations: 119.1 kB / 401.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1651, allocations: 0 / 401.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002987/0.1654, allocations: 24 kB / 401.7 MB, free: 11.62 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001596/0.1655, allocations: 107.3 kB / 401.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003701/0.1659, allocations: 127.8 kB / 401.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.1659, allocations: 0 / 401.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001074/0.166, allocations: 48.61 kB / 401.9 MB, free: 11.33 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000397/0.1665, allocations: 40 kB / 402 MB, free: 11.29 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007064/0.1672, allocations: 310.6 kB / 402.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003757/0.1676, allocations: 0.716 MB / 403 MB, free: 10.21 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.122e-05/0.1676, allocations: 12.88 kB / 403 MB, free: 10.2 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.88e-05/0.1677, allocations: 11.44 kB / 403 MB, free: 10.19 MB / 302.1 MB Notification: Performance of SimCode: time 4.5e-07/0.1677, allocations: 0 / 403 MB, free: 10.19 MB / 302.1 MB Notification: Performance of Templates: time 0.004256/0.172, allocations: 1.015 MB / 404 MB, free: 9.172 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: