Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001509/0.001509, allocations: 185.7 kB / 16.44 MB, free: 5.672 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.014/2.014, allocations: 205.4 MB / 222.6 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001125/0.001125, allocations: 88.41 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1037/0.1037, allocations: 12.6 MB / 331.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005399/0.0005399, allocations: 16 kB / 392 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08897/0.08953, allocations: 50.37 MB / 442.3 MB, free: 16.5 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4322/0.5218, allocations: 79.35 MB / 0.5095 GB, free: 12.81 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002351/0.5221, allocations: 63.47 kB / 0.5095 GB, free: 12.8 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01079/0.5329, allocations: 2.342 MB / 0.5118 GB, free: 11.77 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.533, allocations: 0 / 0.5118 GB, free: 11.77 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.651e-05/0.533, allocations: 3.781 kB / 0.5118 GB, free: 11.77 MB / 330.7 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.0007682/0.5338, allocations: 423.3 kB / 0.5122 GB, free: 11.36 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.5338, allocations: 11.47 kB / 0.5122 GB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.823e-05/0.5339, allocations: 11.69 kB / 0.5122 GB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000234/0.5341, allocations: 216.9 kB / 0.5124 GB, free: 11.13 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.831e-05/0.5342, allocations: 11.08 kB / 0.5125 GB, free: 11.13 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.967e-05/0.5342, allocations: 3.938 kB / 0.5125 GB, free: 11.13 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000522/0.5347, allocations: 206.1 kB / 0.5127 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.5348, allocations: 3.844 kB / 0.5127 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.112e-05/0.5348, allocations: 0 / 0.5127 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.5348, allocations: 0 / 0.5127 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002649/0.5351, allocations: 82.75 kB / 0.5127 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005751/0.5357, allocations: 343.3 kB / 0.5131 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003077/0.536, allocations: 138.1 kB / 0.5132 GB, free: 10.61 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.852e-05/0.5361, allocations: 7.016 kB / 0.5132 GB, free: 10.61 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002158/0.5363, allocations: 93.05 kB / 0.5133 GB, free: 10.55 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 2.334e-06/0.5363, allocations: 0 / 0.5133 GB, free: 10.55 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007036/0.537, allocations: 244.5 kB / 0.5135 GB, free: 10.47 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.609e-05/0.5371, allocations: 88.78 kB / 0.5136 GB, free: 10.37 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001257/0.5372, allocations: 142 kB / 0.5137 GB, free: 10.27 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.208e-05/0.5373, allocations: 33.3 kB / 0.5138 GB, free: 10.24 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.503e-05/0.5373, allocations: 161.4 kB / 0.5139 GB, free: 10.09 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.107e-05/0.5374, allocations: 26.16 kB / 0.514 GB, free: 10.07 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.135e-05/0.5374, allocations: 11.75 kB / 0.514 GB, free: 10.06 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.423e-05/0.5375, allocations: 322.3 kB / 0.5143 GB, free: 9.742 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001213/0.5376, allocations: 33.89 kB / 0.5143 GB, free: 9.738 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001536/0.5378, allocations: 105.9 kB / 0.5144 GB, free: 9.637 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001623/0.538, allocations: 56.67 kB / 0.5145 GB, free: 9.621 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.538, allocations: 3.875 kB / 0.5145 GB, free: 9.621 MB / 330.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003895/0.5384, allocations: 173.6 kB / 0.5146 GB, free: 9.551 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.5384, allocations: 7.906 kB / 0.5146 GB, free: 9.551 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.5384, allocations: 4 kB / 0.5146 GB, free: 9.547 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.016e-05/0.5385, allocations: 3.844 kB / 0.5147 GB, free: 9.547 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001711/0.5386, allocations: 23.39 kB / 0.5147 GB, free: 9.543 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.17e-05/0.5387, allocations: 7.844 kB / 0.5147 GB, free: 9.539 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001105/0.5388, allocations: 11.66 kB / 0.5147 GB, free: 9.535 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.675e-05/0.5388, allocations: 11.81 kB / 0.5147 GB, free: 9.531 MB / 330.7 MB Warning: Assuming fixed start value for the following 1 variables: stateSpace2.y[1]:DISCRETE(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.0002309/0.5391, allocations: 147.3 kB / 0.5148 GB, free: 9.402 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001571/0.5392, allocations: 83.48 kB / 0.5149 GB, free: 9.352 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.417e-05/0.5393, allocations: 19.98 kB / 0.5149 GB, free: 9.34 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.5393, allocations: 0 / 0.5149 GB, free: 9.34 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.5393, allocations: 0 / 0.5149 GB, free: 9.34 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.5393, allocations: 3.969 kB / 0.5149 GB, free: 9.34 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006858/0.54, allocations: 454.7 kB / 0.5154 GB, free: 8.988 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.5401, allocations: 4 kB / 0.5154 GB, free: 8.984 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001229/0.5402, allocations: 15.61 kB / 0.5154 GB, free: 8.98 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.5402, allocations: 3.938 kB / 0.5154 GB, free: 8.977 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.791e-05/0.5402, allocations: 0 / 0.5154 GB, free: 8.977 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.5402, allocations: 3.812 kB / 0.5154 GB, free: 8.977 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.5403, allocations: 0 / 0.5154 GB, free: 8.977 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004961/0.5408, allocations: 307.7 kB / 0.5157 GB, free: 8.785 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.546e-05/0.5408, allocations: 88.77 kB / 0.5158 GB, free: 8.684 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.723e-05/0.5409, allocations: 11.27 kB / 0.5158 GB, free: 8.68 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001828/0.5411, allocations: 10.33 kB / 0.5158 GB, free: 8.676 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.982e-05/0.5411, allocations: 7.859 kB / 0.5158 GB, free: 8.672 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.34e-05/0.5412, allocations: 11.8 kB / 0.5158 GB, free: 8.664 MB / 330.7 MB Notification: Performance of sorting global known variables: time 9.794e-05/0.5413, allocations: 128.1 kB / 0.5159 GB, free: 8.57 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5413, allocations: 0 / 0.5159 GB, free: 8.57 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003734/0.5417, allocations: 25.47 kB / 0.516 GB, free: 8.57 MB / 330.7 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.0001266/0.5418, allocations: 108 kB / 0.5161 GB, free: 8.477 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003847/0.5422, allocations: 122.5 kB / 0.5162 GB, free: 8.453 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.5422, allocations: 4.188 kB / 0.5162 GB, free: 8.449 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001522/0.5424, allocations: 53.16 kB / 0.5162 GB, free: 8.438 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003414/0.5427, allocations: 34.08 kB / 0.5163 GB, free: 8.43 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006784/0.5434, allocations: 329.5 kB / 0.5166 GB, free: 8.188 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001877/0.5436, allocations: 0.7265 MB / 0.5173 GB, free: 7.469 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.474e-05/0.5437, allocations: 15.22 kB / 0.5173 GB, free: 7.461 MB / 330.7 MB Notification: Performance of SimCode: time 9.41e-07/0.5437, allocations: 0 / 0.5173 GB, free: 7.461 MB / 330.7 MB Notification: Performance of Templates: time 0.004023/0.5477, allocations: 1.584 MB / 0.5189 GB, free: 6.676 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace --alarm=480 > Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.pipe 2>&1)