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.001027/0.001027, allocations: 182.3 kB / 13.23 MB, free: 2.086 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.659/1.659, allocations: 205.2 MB / 219 MB, free: 9.203 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.0008674/0.0008674, allocations: 98.2 kB / 267.1 MB, free: 9.277 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.0792/0.0792, allocations: 12.59 MB / 327.8 MB, free: 12.49 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.905e-05/3.924e-05, allocations: 0 / 386 MB, free: 69.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1301/0.1302, allocations: 50.37 MB / 436.4 MB, free: 19.22 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4612/0.5914, allocations: 79.26 MB / 0.5035 GB, free: 11.86 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002277/0.5917, allocations: 57.06 kB / 0.5036 GB, free: 11.86 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007565/0.5993, allocations: 2.331 MB / 0.5059 GB, free: 11.39 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.5993, allocations: 0 / 0.5059 GB, free: 11.39 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.663e-05/0.5993, allocations: 3.844 kB / 0.5059 GB, free: 11.39 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.0005397/0.5999, allocations: 406.5 kB / 0.5063 GB, free: 11.02 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.141e-05/0.5999, allocations: 11.56 kB / 0.5063 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.412e-05/0.6, allocations: 15.5 kB / 0.5063 GB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002342/0.6003, allocations: 213.8 kB / 0.5065 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.945e-05/0.6003, allocations: 7.578 kB / 0.5065 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.153e-05/0.6003, allocations: 7.594 kB / 0.5065 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003968/0.6007, allocations: 195.9 kB / 0.5067 GB, free: 10.72 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.6008, allocations: 0 / 0.5067 GB, free: 10.72 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.982e-05/0.6008, allocations: 11.88 kB / 0.5067 GB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.406e-06/0.6008, allocations: 3.781 kB / 0.5067 GB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001299/0.6009, allocations: 64.28 kB / 0.5068 GB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005312/0.6015, allocations: 343 kB / 0.5071 GB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001781/0.6017, allocations: 133.6 kB / 0.5072 GB, free: 10.32 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.65e-05/0.6018, allocations: 58.52 kB / 0.5073 GB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.111e-05/0.6018, allocations: 11.5 kB / 0.5073 GB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001415/0.6019, allocations: 92.03 kB / 0.5074 GB, free: 10.23 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 2.384e-06/0.602, allocations: 0 / 0.5074 GB, free: 10.23 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003354/0.6023, allocations: 169.5 kB / 0.5075 GB, free: 10.17 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.448e-05/0.6024, allocations: 88.38 kB / 0.5076 GB, free: 10.07 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001036/0.6025, allocations: 141.3 kB / 0.5078 GB, free: 9.977 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.74e-05/0.6025, allocations: 28.27 kB / 0.5078 GB, free: 9.945 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.556e-05/0.6026, allocations: 101.4 kB / 0.5079 GB, free: 9.863 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.537e-05/0.6026, allocations: 32.89 kB / 0.5079 GB, free: 9.84 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.701e-06/0.6026, allocations: 0 / 0.5079 GB, free: 9.84 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.038e-05/0.6027, allocations: 328.9 kB / 0.5082 GB, free: 9.52 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.237e-05/0.6027, allocations: 33.42 kB / 0.5083 GB, free: 9.516 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.629e-05/0.6028, allocations: 100.4 kB / 0.5084 GB, free: 9.418 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.349e-05/0.6029, allocations: 42.39 kB / 0.5084 GB, free: 9.41 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.6029, allocations: 0 / 0.5084 GB, free: 9.41 MB / 330.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002198/0.6032, allocations: 167.8 kB / 0.5086 GB, free: 9.34 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.6032, allocations: 3.812 kB / 0.5086 GB, free: 9.34 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.6032, allocations: 3.812 kB / 0.5086 GB, free: 9.34 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.6032, allocations: 4.219 kB / 0.5086 GB, free: 9.34 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001104/0.6033, allocations: 30.81 kB / 0.5086 GB, free: 9.328 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.6034, allocations: 7.75 kB / 0.5086 GB, free: 9.324 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.34e-05/0.6034, allocations: 11.25 kB / 0.5086 GB, free: 9.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.232e-05/0.6035, allocations: 10.75 kB / 0.5086 GB, free: 9.32 MB / 330.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.0001228/0.6036, allocations: 130.8 kB / 0.5088 GB, free: 9.195 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.91e-05/0.6037, allocations: 70.47 kB / 0.5088 GB, free: 9.156 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.585e-05/0.6037, allocations: 18.95 kB / 0.5088 GB, free: 9.148 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.6037, allocations: 7.844 kB / 0.5088 GB, free: 9.145 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.6038, allocations: 96 / 0.5088 GB, free: 9.145 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.6038, allocations: 3.938 kB / 0.5088 GB, free: 9.141 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003983/0.6042, allocations: 447 kB / 0.5093 GB, free: 8.789 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.6042, allocations: 0 / 0.5093 GB, free: 8.789 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.559e-05/0.6043, allocations: 7.531 kB / 0.5093 GB, free: 8.789 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.6043, allocations: 3.656 kB / 0.5093 GB, free: 8.789 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.595e-05/0.6043, allocations: 3.984 kB / 0.5093 GB, free: 8.785 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.6043, allocations: 7.875 kB / 0.5093 GB, free: 8.781 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.6043, allocations: 0 / 0.5093 GB, free: 8.781 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002654/0.6046, allocations: 293 kB / 0.5096 GB, free: 8.594 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.18e-05/0.6046, allocations: 88.86 kB / 0.5097 GB, free: 8.492 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.461e-05/0.6047, allocations: 11.02 kB / 0.5097 GB, free: 8.488 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001157/0.6048, allocations: 15.67 kB / 0.5097 GB, free: 8.48 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.363e-05/0.6049, allocations: 15.41 kB / 0.5097 GB, free: 8.473 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.856e-05/0.6049, allocations: 11.83 kB / 0.5097 GB, free: 8.465 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.067e-05/0.605, allocations: 118.2 kB / 0.5098 GB, free: 8.383 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.605, allocations: 0 / 0.5098 GB, free: 8.383 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002677/0.6052, allocations: 22.66 kB / 0.5098 GB, free: 8.383 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]) * 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.0001108/0.6054, allocations: 101.7 kB / 0.5099 GB, free: 8.297 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002005/0.6056, allocations: 109.5 kB / 0.51 GB, free: 8.277 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.6056, allocations: 0 / 0.51 GB, free: 8.277 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.344e-05/0.6057, allocations: 44.67 kB / 0.5101 GB, free: 8.27 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002835/0.6059, allocations: 36.11 kB / 0.5101 GB, free: 8.262 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004356/0.6064, allocations: 201.4 kB / 0.5103 GB, free: 8.137 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001884/0.6066, allocations: 0.7271 MB / 0.511 GB, free: 7.418 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.972e-05/0.6067, allocations: 8.562 kB / 0.511 GB, free: 7.41 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.852e-05/0.6067, allocations: 15 kB / 0.5111 GB, free: 7.402 MB / 330.7 MB Notification: Performance of SimCode: time 5.91e-07/0.6067, allocations: 288 / 0.5111 GB, free: 7.402 MB / 330.7 MB Notification: Performance of Templates: time 0.003712/0.6104, allocations: 1.019 MB / 0.512 GB, free: 6.91 MB / 330.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)