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/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/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.001039/0.001039, allocations: 181.2 kB / 17.46 MB, free: 4.355 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.46/1.46, allocations: 205.4 MB / 223.6 MB, free: 9.023 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.0006984/0.0006983, allocations: 92.64 kB / 272 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.07282/0.07282, allocations: 12.2 MB / 332.4 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004145/0.0004145, allocations: 15.98 kB / 392.7 MB, free: 67.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09707/0.0975, allocations: 50.29 MB / 443 MB, free: 16.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3263/0.4238, allocations: 79.32 MB / 0.5101 GB, free: 13.12 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001938/0.4241, allocations: 62.19 kB / 0.5101 GB, free: 13.12 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00627/0.4304, allocations: 2.334 MB / 0.5124 GB, free: 12.11 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4304, allocations: 0 / 0.5124 GB, free: 12.11 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.232e-05/0.4304, allocations: 7.844 kB / 0.5124 GB, free: 12.1 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.0004768/0.4309, allocations: 424.3 kB / 0.5128 GB, free: 11.7 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.4309, allocations: 7.688 kB / 0.5128 GB, free: 11.7 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.689e-05/0.431, allocations: 16.44 kB / 0.5129 GB, free: 11.69 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000175/0.4312, allocations: 215.5 kB / 0.5131 GB, free: 11.46 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.401e-05/0.4312, allocations: 8.094 kB / 0.5131 GB, free: 11.46 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.22e-05/0.4312, allocations: 4.25 kB / 0.5131 GB, free: 11.46 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003833/0.4316, allocations: 211.1 kB / 0.5133 GB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.4316, allocations: 192 / 0.5133 GB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.844e-05/0.4317, allocations: 15.83 kB / 0.5133 GB, free: 11.35 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5e-06/0.4317, allocations: 0 / 0.5133 GB, free: 11.35 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001535/0.4318, allocations: 77.81 kB / 0.5134 GB, free: 11.33 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004333/0.4323, allocations: 346 kB / 0.5137 GB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001941/0.4325, allocations: 132.9 kB / 0.5138 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001045/0.4326, allocations: 75.12 kB / 0.5139 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.157e-05/0.4326, allocations: 3.844 kB / 0.5139 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001391/0.4328, allocations: 91.56 kB / 0.514 GB, free: 10.85 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 1.503e-06/0.4328, allocations: 0 / 0.514 GB, free: 10.85 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004244/0.4332, allocations: 252.6 kB / 0.5142 GB, free: 10.77 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.435e-05/0.4333, allocations: 84.17 kB / 0.5143 GB, free: 10.68 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.841e-05/0.4334, allocations: 153.4 kB / 0.5145 GB, free: 10.56 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.56e-05/0.4334, allocations: 36.86 kB / 0.5145 GB, free: 10.53 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.465e-05/0.4334, allocations: 99.14 kB / 0.5146 GB, free: 10.44 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.67e-05/0.4335, allocations: 31.14 kB / 0.5146 GB, free: 10.42 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.321e-06/0.4335, allocations: 0 / 0.5146 GB, free: 10.42 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.135e-05/0.4335, allocations: 332.4 kB / 0.5149 GB, free: 10.1 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.623e-05/0.4336, allocations: 33.23 kB / 0.515 GB, free: 10.09 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.544e-05/0.4337, allocations: 108.1 kB / 0.5151 GB, free: 9.992 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001923/0.4339, allocations: 174.2 kB / 0.5152 GB, free: 9.875 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.4339, allocations: 0 / 0.5152 GB, free: 9.875 MB / 330.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002224/0.4341, allocations: 178 kB / 0.5154 GB, free: 9.801 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.4342, allocations: 7.656 kB / 0.5154 GB, free: 9.801 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.4342, allocations: 3.844 kB / 0.5154 GB, free: 9.801 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.4342, allocations: 3.781 kB / 0.5154 GB, free: 9.801 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.436e-05/0.4343, allocations: 23.48 kB / 0.5154 GB, free: 9.793 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.4343, allocations: 12.67 kB / 0.5155 GB, free: 9.785 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.304e-05/0.4344, allocations: 11.59 kB / 0.5155 GB, free: 9.785 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.608e-06/0.4344, allocations: 3.844 kB / 0.5155 GB, free: 9.785 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.0001236/0.4345, allocations: 151 kB / 0.5156 GB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.215e-05/0.4346, allocations: 83.22 kB / 0.5157 GB, free: 9.605 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.125e-05/0.4347, allocations: 19.77 kB / 0.5157 GB, free: 9.598 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.4347, allocations: 4 kB / 0.5157 GB, free: 9.594 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.4347, allocations: 4.375 kB / 0.5157 GB, free: 9.594 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.4347, allocations: 0 / 0.5157 GB, free: 9.594 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004033/0.4351, allocations: 452.3 kB / 0.5161 GB, free: 9.242 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.4351, allocations: 4 kB / 0.5162 GB, free: 9.238 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.966e-05/0.4352, allocations: 19.45 kB / 0.5162 GB, free: 9.23 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.4352, allocations: 0 / 0.5162 GB, free: 9.23 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.456e-05/0.4352, allocations: 7.844 kB / 0.5162 GB, free: 9.227 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.4352, allocations: 3.984 kB / 0.5162 GB, free: 9.223 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.4352, allocations: 3.938 kB / 0.5162 GB, free: 9.219 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002977/0.4355, allocations: 283.2 kB / 0.5165 GB, free: 9.055 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.567e-05/0.4356, allocations: 92.69 kB / 0.5165 GB, free: 8.949 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3e-05/0.4356, allocations: 11.44 kB / 0.5166 GB, free: 8.945 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001096/0.4357, allocations: 14.45 kB / 0.5166 GB, free: 8.941 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.178e-05/0.4358, allocations: 11.75 kB / 0.5166 GB, free: 8.934 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.581e-05/0.4358, allocations: 15.7 kB / 0.5166 GB, free: 8.922 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.102e-05/0.4359, allocations: 121 kB / 0.5167 GB, free: 8.836 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4359, allocations: 0 / 0.5167 GB, free: 8.836 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002509/0.4361, allocations: 22.06 kB / 0.5167 GB, free: 8.836 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.0001012/0.4362, allocations: 106.1 kB / 0.5168 GB, free: 8.738 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002313/0.4365, allocations: 121.9 kB / 0.5169 GB, free: 8.715 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4365, allocations: 3.375 kB / 0.517 GB, free: 8.715 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.415e-05/0.4366, allocations: 46.36 kB / 0.517 GB, free: 8.707 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003443/0.4369, allocations: 48.69 kB / 0.517 GB, free: 8.691 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004357/0.4374, allocations: 335.4 kB / 0.5174 GB, free: 8.449 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001327/0.4375, allocations: 0.7216 MB / 0.5181 GB, free: 7.734 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.612e-05/0.4375, allocations: 14.94 kB / 0.5181 GB, free: 7.727 MB / 330.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4376, allocations: 0 / 0.5181 GB, free: 7.727 MB / 330.7 MB Notification: Performance of Templates: time 0.002567/0.4401, allocations: 1.603 MB / 0.5196 GB, free: 6.922 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)