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.0009074/0.0009075, allocations: 180.9 kB / 8.049 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 1.596/1.596, allocations: 205.3 MB / 213.8 MB, free: 1.668 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.0009469/0.0009469, allocations: 82.62 kB / 261.8 MB, free: 1.617 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.07525/0.07525, allocations: 12.59 MB / 322.3 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.78e-05/1.772e-05, allocations: 4 kB / 378.9 MB, free: 6.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2418/0.2418, allocations: 50.38 MB / 429.3 MB, free: 18.35 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1032/0.345, allocations: 78.6 MB / 0.496 GB, free: 3.645 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002257/0.3453, allocations: 59.97 kB / 0.4961 GB, free: 3.586 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007331/0.3526, allocations: 2.309 MB / 0.4983 GB, free: 1.262 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.118e-06/0.3527, allocations: 0 / 0.4983 GB, free: 1.262 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.992e-05/0.3527, allocations: 11.94 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.0006354/0.3533, allocations: 402.2 kB / 0.4987 GB, free: 0.8125 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.437e-05/0.3534, allocations: 8.031 kB / 0.4987 GB, free: 0.8047 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.145e-05/0.3535, allocations: 15.81 kB / 0.4987 GB, free: 0.7891 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002371/0.3537, allocations: 209.3 kB / 0.4989 GB, free: 0.5469 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.279e-05/0.3537, allocations: 7.953 kB / 0.4989 GB, free: 0.5391 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.346e-05/0.3538, allocations: 4 kB / 0.4989 GB, free: 0.5352 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001714/0.3539, allocations: 71.91 kB / 0.499 GB, free: 476 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003266/0.3543, allocations: 173 kB / 0.4992 GB, free: 284 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.3543, allocations: 11.94 kB / 0.4992 GB, free: 272 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.772e-05/0.3543, allocations: 3.984 kB / 0.4992 GB, free: 268 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.3543, allocations: 0 / 0.4992 GB, free: 268 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005113/0.3549, allocations: 310.1 kB / 0.4995 GB, free: 15.92 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001901/0.3551, allocations: 129.2 kB / 0.4996 GB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.889e-05/0.3552, allocations: 57.7 kB / 0.4997 GB, free: 15.71 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.426e-05/0.3552, allocations: 0 / 0.4997 GB, free: 15.71 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001485/0.3553, allocations: 95.45 kB / 0.4998 GB, free: 15.61 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 1.453e-06/0.3554, allocations: 0 / 0.4998 GB, free: 15.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003279/0.3557, allocations: 173.3 kB / 0.4999 GB, free: 15.43 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.048e-05/0.3558, allocations: 85.11 kB / 0.5 GB, free: 15.33 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001228/0.3559, allocations: 133.4 kB / 0.5001 GB, free: 15.19 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.622e-05/0.3559, allocations: 29.7 kB / 0.5002 GB, free: 15.15 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.137e-05/0.356, allocations: 100.1 kB / 0.5003 GB, free: 15.05 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.353e-05/0.356, allocations: 23.66 kB / 0.5003 GB, free: 15.03 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.071e-06/0.356, allocations: 0 / 0.5003 GB, free: 15.03 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.3562, allocations: 326.8 kB / 0.5006 GB, free: 14.7 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.34e-05/0.3562, allocations: 35.94 kB / 0.5006 GB, free: 14.66 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.189e-05/0.3563, allocations: 94.41 kB / 0.5007 GB, free: 14.54 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.081e-05/0.3564, allocations: 35.98 kB / 0.5007 GB, free: 14.5 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3564, allocations: 0 / 0.5007 GB, free: 14.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002055/0.3566, allocations: 153.4 kB / 0.5009 GB, free: 14.35 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.3566, allocations: 4 kB / 0.5009 GB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.3567, allocations: 4 kB / 0.5009 GB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.006e-05/0.3567, allocations: 4 kB / 0.5009 GB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001128/0.3568, allocations: 23.92 kB / 0.5009 GB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.3568, allocations: 4 kB / 0.5009 GB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.709e-05/0.3569, allocations: 11.91 kB / 0.5009 GB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.557e-05/0.3569, allocations: 8.25 kB / 0.5009 GB, free: 14.29 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.0001384/0.3571, allocations: 136.2 kB / 0.5011 GB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.199e-05/0.3572, allocations: 69.7 kB / 0.5011 GB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.527e-05/0.3572, allocations: 24.55 kB / 0.5012 GB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.3572, allocations: 0 / 0.5012 GB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.3572, allocations: 0 / 0.5012 GB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/0.3572, allocations: 96 / 0.5012 GB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004287/0.3577, allocations: 414.8 kB / 0.5016 GB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.3577, allocations: 0 / 0.5016 GB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.774e-05/0.3578, allocations: 19.98 kB / 0.5016 GB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.3578, allocations: 0 / 0.5016 GB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.505e-05/0.3578, allocations: 4 kB / 0.5016 GB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3578, allocations: 0 / 0.5016 GB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.3578, allocations: 0 / 0.5016 GB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002963/0.3581, allocations: 290 kB / 0.5019 GB, free: 13.28 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.382e-05/0.3582, allocations: 88.92 kB / 0.5019 GB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.431e-05/0.3582, allocations: 11.92 kB / 0.502 GB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001095/0.3583, allocations: 7.984 kB / 0.502 GB, free: 13.15 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.584e-05/0.3584, allocations: 4 kB / 0.502 GB, free: 13.15 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.001e-05/0.3584, allocations: 11.98 kB / 0.502 GB, free: 13.14 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.231e-05/0.3585, allocations: 119.8 kB / 0.5021 GB, free: 13.02 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3585, allocations: 4 kB / 0.5021 GB, free: 13.02 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002452/0.3588, allocations: 19.95 kB / 0.5021 GB, free: 13 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.0001316/0.3589, allocations: 103.2 kB / 0.5022 GB, free: 12.88 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001902/0.3591, allocations: 95.86 kB / 0.5023 GB, free: 12.79 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3591, allocations: 0 / 0.5023 GB, free: 12.79 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.544e-05/0.3592, allocations: 39.92 kB / 0.5023 GB, free: 12.75 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000267/0.3594, allocations: 36.7 kB / 0.5024 GB, free: 12.71 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004241/0.3599, allocations: 189.6 kB / 0.5026 GB, free: 12.5 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003262/0.3602, allocations: 0.7236 MB / 0.5033 GB, free: 11.75 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.456e-05/0.3603, allocations: 16.81 kB / 0.5033 GB, free: 11.73 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.733e-05/0.3603, allocations: 15.44 kB / 0.5033 GB, free: 11.72 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3603, allocations: 4 kB / 0.5033 GB, free: 11.71 MB / 362.7 MB Notification: Performance of Templates: time 0.003182/0.3635, allocations: 0.9624 MB / 0.5042 GB, free: 10.75 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)