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.002017/0.002017, allocations: 177.7 kB / 8.045 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.075/2.075, allocations: 205.3 MB / 213.8 MB, free: 1.727 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001102/0.001102, allocations: 91.98 kB / 261.8 MB, free: 1.676 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.1001/0.1001, allocations: 12.6 MB / 322.3 MB, free: 15.19 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.206e-05/2.215e-05, allocations: 4 kB / 378.9 MB, free: 6.508 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3/0.3, allocations: 50.37 MB / 429.3 MB, free: 18.34 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1394/0.4395, allocations: 78.6 MB / 0.496 GB, free: 3.633 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002448/0.4399, allocations: 59.97 kB / 0.4961 GB, free: 3.574 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01175/0.4516, allocations: 2.306 MB / 0.4983 GB, free: 1.254 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.378e-06/0.4517, allocations: 0 / 0.4983 GB, free: 1.254 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.583e-05/0.4517, allocations: 3.938 kB / 0.4983 GB, free: 1.25 MB / 346.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.0008367/0.4526, allocations: 414.2 kB / 0.4987 GB, free: 0.8008 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.019e-05/0.4526, allocations: 12.03 kB / 0.4987 GB, free: 0.7891 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.482e-05/0.4527, allocations: 11.81 kB / 0.4987 GB, free: 0.7773 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003296/0.453, allocations: 209.3 kB / 0.4989 GB, free: 0.5352 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.981e-05/0.4531, allocations: 11.95 kB / 0.4989 GB, free: 0.5234 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.295e-05/0.4531, allocations: 4 kB / 0.499 GB, free: 0.5195 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002419/0.4534, allocations: 63.91 kB / 0.499 GB, free: 468 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004707/0.4539, allocations: 181 kB / 0.4992 GB, free: 268 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.4539, allocations: 3.938 kB / 0.4992 GB, free: 264 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.972e-05/0.4539, allocations: 0 / 0.4992 GB, free: 264 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.927e-06/0.4539, allocations: 8 kB / 0.4992 GB, free: 256 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007116/0.4547, allocations: 314 kB / 0.4995 GB, free: 15.9 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002976/0.455, allocations: 133.2 kB / 0.4996 GB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001464/0.4551, allocations: 53.7 kB / 0.4997 GB, free: 15.7 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.502e-05/0.4552, allocations: 4 kB / 0.4997 GB, free: 15.69 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002167/0.4554, allocations: 95.25 kB / 0.4998 GB, free: 15.59 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 2.806e-06/0.4554, allocations: 0 / 0.4998 GB, free: 15.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005221/0.456, allocations: 165.4 kB / 0.4999 GB, free: 15.42 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/0.4561, allocations: 89.11 kB / 0.5 GB, free: 15.31 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001965/0.4563, allocations: 137.4 kB / 0.5001 GB, free: 15.17 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.741e-05/0.4564, allocations: 25.7 kB / 0.5002 GB, free: 15.14 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.29e-05/0.4564, allocations: 104.1 kB / 0.5003 GB, free: 15.03 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.057e-05/0.4565, allocations: 23.66 kB / 0.5003 GB, free: 15.01 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.416e-06/0.4565, allocations: 0 / 0.5003 GB, free: 15.01 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001712/0.4567, allocations: 322.8 kB / 0.5006 GB, free: 14.68 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.545e-05/0.4568, allocations: 27.94 kB / 0.5006 GB, free: 14.66 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000145/0.457, allocations: 102.4 kB / 0.5007 GB, free: 14.52 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001276/0.4571, allocations: 39.98 kB / 0.5008 GB, free: 14.48 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.4571, allocations: 0 / 0.5008 GB, free: 14.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003699/0.4575, allocations: 153.5 kB / 0.5009 GB, free: 14.33 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.4575, allocations: 4 kB / 0.5009 GB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.4575, allocations: 4 kB / 0.5009 GB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.154e-05/0.4576, allocations: 4 kB / 0.5009 GB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002044/0.4578, allocations: 23.92 kB / 0.5009 GB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/0.4578, allocations: 4 kB / 0.5009 GB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001161/0.4579, allocations: 7.906 kB / 0.5009 GB, free: 14.28 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.261e-05/0.458, allocations: 12 kB / 0.501 GB, free: 14.27 MB / 362.7 MB Warning: Assuming fixed start value for the following 1 variables: stateSpace2.y[1]:DISCRETE(fixed = false ) "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 () * 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.0001973/0.4582, allocations: 124.3 kB / 0.5011 GB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001681/0.4584, allocations: 73.69 kB / 0.5012 GB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.584e-05/0.4584, allocations: 24.55 kB / 0.5012 GB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.194e-06/0.4585, allocations: 4 kB / 0.5012 GB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.4585, allocations: 0 / 0.5012 GB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.647e-06/0.4585, allocations: 0 / 0.5012 GB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007215/0.4592, allocations: 407 kB / 0.5016 GB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.4592, allocations: 4.188 kB / 0.5016 GB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001414/0.4594, allocations: 15.98 kB / 0.5016 GB, free: 13.58 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/0.4594, allocations: 3.938 kB / 0.5016 GB, free: 13.58 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.172e-05/0.4595, allocations: 4 kB / 0.5016 GB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.036e-05/0.4595, allocations: 4 kB / 0.5016 GB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.237e-06/0.4595, allocations: 0 / 0.5016 GB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004821/0.46, allocations: 285.9 kB / 0.5019 GB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.512e-05/0.4601, allocations: 93.02 kB / 0.502 GB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.041e-05/0.4601, allocations: 7.969 kB / 0.502 GB, free: 13.15 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002057/0.4604, allocations: 11.98 kB / 0.502 GB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.321e-05/0.4604, allocations: 4 kB / 0.502 GB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.798e-05/0.4605, allocations: 7.984 kB / 0.502 GB, free: 13.12 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001307/0.4606, allocations: 119.8 kB / 0.5021 GB, free: 13.01 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4606, allocations: 0 / 0.5021 GB, free: 13.01 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004119/0.461, allocations: 27.95 kB / 0.5021 GB, free: 12.98 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]) * 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.0001659/0.4612, allocations: 95.25 kB / 0.5022 GB, free: 12.88 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003269/0.4616, allocations: 103.8 kB / 0.5023 GB, free: 12.77 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.4616, allocations: 0 / 0.5023 GB, free: 12.77 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001198/0.4617, allocations: 39.92 kB / 0.5024 GB, free: 12.73 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003853/0.4621, allocations: 32.7 kB / 0.5024 GB, free: 12.7 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006779/0.4628, allocations: 189.6 kB / 0.5026 GB, free: 12.49 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004008/0.4632, allocations: 0.7236 MB / 0.5033 GB, free: 11.74 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.179e-05/0.4633, allocations: 16.81 kB / 0.5033 GB, free: 11.72 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.666e-05/0.4634, allocations: 11.44 kB / 0.5033 GB, free: 11.71 MB / 362.7 MB Notification: Performance of SimCode: time 1.272e-06/0.4634, allocations: 0 / 0.5033 GB, free: 11.71 MB / 362.7 MB Notification: Performance of Templates: time 0.005038/0.4685, allocations: 0.9702 MB / 0.5042 GB, free: 10.74 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)