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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.001125/0.001125, allocations: 178.5 kB / 15.8 MB, free: 6.34 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.584/1.584, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.001277/0.001277, allocations: 90.88 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08675/0.08675, allocations: 12.59 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003971/0.0003971, allocations: 10.41 kB / 392 MB, free: 54.86 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.1241, allocations: 50.37 MB / 442.4 MB, free: 10.95 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1208/0.2449, allocations: 79.35 MB / 0.5095 GB, free: 11.49 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002342/0.2452, allocations: 67.95 kB / 0.5096 GB, free: 11.42 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007459/0.2527, allocations: 2.323 MB / 0.5118 GB, free: 9.078 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.27e-06/0.2527, allocations: 4 kB / 0.5118 GB, free: 9.074 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.902e-05/0.2527, allocations: 4 kB / 0.5118 GB, free: 9.07 MB / 362.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.0008384/0.2536, allocations: 430.7 kB / 0.5122 GB, free: 8.602 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.58e-05/0.2537, allocations: 8.031 kB / 0.5122 GB, free: 8.594 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.571e-05/0.2537, allocations: 27.81 kB / 0.5123 GB, free: 8.566 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002753/0.254, allocations: 207 kB / 0.5125 GB, free: 8.324 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.627e-05/0.254, allocations: 7.953 kB / 0.5125 GB, free: 8.316 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.449e-05/0.2541, allocations: 8 kB / 0.5125 GB, free: 8.309 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004926/0.2546, allocations: 208.9 kB / 0.5127 GB, free: 8.086 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.2546, allocations: 3.938 kB / 0.5127 GB, free: 8.082 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.828e-05/0.2546, allocations: 0 / 0.5127 GB, free: 8.082 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.2546, allocations: 7.922 kB / 0.5127 GB, free: 8.074 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002101/0.2549, allocations: 75.95 kB / 0.5128 GB, free: 8 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000732/0.2556, allocations: 341.5 kB / 0.5131 GB, free: 7.613 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003135/0.2559, allocations: 141.2 kB / 0.5132 GB, free: 7.457 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.256e-05/0.256, allocations: 4 kB / 0.5132 GB, free: 7.453 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001779/0.2561, allocations: 95.3 kB / 0.5133 GB, free: 7.348 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 1.603e-06/0.2562, allocations: 4 kB / 0.5133 GB, free: 7.344 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005418/0.2567, allocations: 237.3 kB / 0.5136 GB, free: 7.105 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.066e-05/0.2568, allocations: 85.05 kB / 0.5136 GB, free: 7.004 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001492/0.257, allocations: 149.2 kB / 0.5138 GB, free: 6.852 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.536e-05/0.257, allocations: 33.7 kB / 0.5138 GB, free: 6.812 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.895e-05/0.2571, allocations: 100.1 kB / 0.5139 GB, free: 6.711 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.039e-05/0.2571, allocations: 23.66 kB / 0.5139 GB, free: 6.688 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.526e-06/0.2572, allocations: 4 kB / 0.5139 GB, free: 6.684 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001845/0.2573, allocations: 326.8 kB / 0.5142 GB, free: 6.355 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.553e-05/0.2574, allocations: 35.97 kB / 0.5143 GB, free: 6.32 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001246/0.2576, allocations: 109.4 kB / 0.5144 GB, free: 6.18 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001212/0.2577, allocations: 55.92 kB / 0.5144 GB, free: 6.125 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.2577, allocations: 0 / 0.5144 GB, free: 6.125 MB / 362.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000293/0.258, allocations: 181.2 kB / 0.5146 GB, free: 5.941 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.323e-05/0.258, allocations: 10.97 kB / 0.5146 GB, free: 5.934 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.2581, allocations: 0 / 0.5146 GB, free: 5.934 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.2581, allocations: 4 kB / 0.5146 GB, free: 5.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001204/0.2582, allocations: 23.98 kB / 0.5146 GB, free: 5.906 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.566e-05/0.2582, allocations: 11.92 kB / 0.5147 GB, free: 5.895 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.269e-05/0.2583, allocations: 12.36 kB / 0.5147 GB, free: 5.883 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.524e-05/0.2583, allocations: 16.31 kB / 0.5147 GB, free: 5.867 MB / 362.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.0001819/0.2585, allocations: 145.5 kB / 0.5148 GB, free: 5.715 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001155/0.2586, allocations: 77.52 kB / 0.5149 GB, free: 5.633 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.343e-05/0.2587, allocations: 20.89 kB / 0.5149 GB, free: 5.609 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.2587, allocations: 0 / 0.5149 GB, free: 5.609 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/0.2587, allocations: 4 kB / 0.5149 GB, free: 5.605 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.2587, allocations: 3.984 kB / 0.5149 GB, free: 5.602 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005958/0.2594, allocations: 458.4 kB / 0.5154 GB, free: 5.098 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.2594, allocations: 0 / 0.5154 GB, free: 5.098 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.014e-05/0.2595, allocations: 15.94 kB / 0.5154 GB, free: 5.082 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.2595, allocations: 0 / 0.5154 GB, free: 5.082 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.731e-05/0.2595, allocations: 7.984 kB / 0.5154 GB, free: 5.074 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.2595, allocations: 0 / 0.5154 GB, free: 5.074 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.2595, allocations: 0 / 0.5154 GB, free: 5.074 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004139/0.2599, allocations: 309.9 kB / 0.5157 GB, free: 4.746 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.438e-05/0.26, allocations: 88.92 kB / 0.5158 GB, free: 4.641 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.457e-05/0.26, allocations: 11.98 kB / 0.5158 GB, free: 4.629 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000117/0.2602, allocations: 16 kB / 0.5158 GB, free: 4.613 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.295e-05/0.2602, allocations: 11.94 kB / 0.5158 GB, free: 4.602 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.704e-05/0.2602, allocations: 4 kB / 0.5158 GB, free: 4.598 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.919e-05/0.2603, allocations: 119.1 kB / 0.5159 GB, free: 4.48 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.463e-06/0.2603, allocations: 0 / 0.5159 GB, free: 4.48 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002543/0.2606, allocations: 27.94 kB / 0.5159 GB, free: 4.453 MB / 362.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.0001304/0.2607, allocations: 103 kB / 0.516 GB, free: 4.348 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002792/0.261, allocations: 127.8 kB / 0.5162 GB, free: 4.223 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.261, allocations: 0 / 0.5162 GB, free: 4.223 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001016/0.2611, allocations: 47.91 kB / 0.5162 GB, free: 4.176 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002694/0.2614, allocations: 36.7 kB / 0.5162 GB, free: 4.141 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000559/0.262, allocations: 306.7 kB / 0.5165 GB, free: 3.812 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003577/0.2624, allocations: 0.728 MB / 0.5173 GB, free: 3.059 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.52e-05/0.2624, allocations: 12.88 kB / 0.5173 GB, free: 3.043 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.176e-05/0.2625, allocations: 15.44 kB / 0.5173 GB, free: 3.027 MB / 362.7 MB Notification: Performance of SimCode: time 3.3e-07/0.2625, allocations: 3.938 kB / 0.5173 GB, free: 3.023 MB / 362.7 MB Notification: Performance of Templates: time 0.003629/0.2661, allocations: 1.005 MB / 0.5183 GB, free: 2.02 MB / 362.7 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)