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-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_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.00203/0.002036, allocations: 177.8 kB / 8.403 MB, free: 0.6719 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.148/2.148, allocations: 205.3 MB / 214.1 MB, free: 1.734 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.001034/0.001034, allocations: 82.42 kB / 262.1 MB, free: 1.684 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.1056/0.1056, allocations: 12.6 MB / 322.7 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.885e-05/1.885e-05, allocations: 3.938 kB / 378.9 MB, free: 6.898 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3062/0.3063, allocations: 50.37 MB / 429.3 MB, free: 18.41 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1384/0.4448, allocations: 78.6 MB / 0.496 GB, free: 3.703 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002327/0.4451, allocations: 59.97 kB / 0.496 GB, free: 3.645 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01163/0.4567, allocations: 2.309 MB / 0.4983 GB, free: 1.32 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.4568, allocations: 3.938 kB / 0.4983 GB, free: 1.316 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.59e-05/0.4568, allocations: 0 / 0.4983 GB, free: 1.316 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.0007792/0.4576, allocations: 414.2 kB / 0.4987 GB, free: 0.8672 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.031e-05/0.4576, allocations: 12.03 kB / 0.4987 GB, free: 0.8555 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.369e-05/0.4577, allocations: 11.81 kB / 0.4987 GB, free: 0.8438 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003315/0.4581, allocations: 209.3 kB / 0.4989 GB, free: 0.6016 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.22e-05/0.4581, allocations: 7.953 kB / 0.4989 GB, free: 0.5938 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.427e-05/0.4581, allocations: 11.98 kB / 0.4989 GB, free: 0.582 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002426/0.4584, allocations: 59.92 kB / 0.499 GB, free: 0.5234 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004514/0.4589, allocations: 181 kB / 0.4992 GB, free: 336 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.4589, allocations: 0 / 0.4992 GB, free: 336 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.306e-05/0.4589, allocations: 7.922 kB / 0.4992 GB, free: 328 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.135e-05/0.459, allocations: 8 kB / 0.4992 GB, free: 320 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007118/0.4597, allocations: 314 kB / 0.4995 GB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002753/0.46, allocations: 121.2 kB / 0.4996 GB, free: 15.83 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001435/0.4601, allocations: 57.7 kB / 0.4996 GB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.435e-05/0.4602, allocations: 11.92 kB / 0.4997 GB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001997/0.4604, allocations: 83.38 kB / 0.4997 GB, free: 15.66 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 3.066e-06/0.4604, allocations: 0 / 0.4997 GB, free: 15.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.000504/0.4609, allocations: 165.4 kB / 0.4999 GB, free: 15.49 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.961e-05/0.461, allocations: 93.09 kB / 0.5 GB, free: 15.38 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001693/0.4612, allocations: 129.4 kB / 0.5001 GB, free: 15.25 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.393e-05/0.4612, allocations: 25.7 kB / 0.5001 GB, free: 15.21 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.401e-05/0.4613, allocations: 170.5 kB / 0.5003 GB, free: 15.05 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.376e-05/0.4614, allocations: 23.66 kB / 0.5003 GB, free: 15.02 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.476e-06/0.4614, allocations: 0 / 0.5003 GB, free: 15.02 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.4615, allocations: 322.8 kB / 0.5006 GB, free: 14.7 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.572e-05/0.4616, allocations: 27.89 kB / 0.5006 GB, free: 14.67 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001266/0.4618, allocations: 94.47 kB / 0.5007 GB, free: 14.55 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001352/0.4619, allocations: 39.97 kB / 0.5008 GB, free: 14.51 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.613e-06/0.4619, allocations: 4 kB / 0.5008 GB, free: 14.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003317/0.4623, allocations: 141.7 kB / 0.5009 GB, free: 14.36 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.371e-05/0.4623, allocations: 4.094 kB / 0.5009 GB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.4623, allocations: 7.938 kB / 0.5009 GB, free: 14.35 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.989e-05/0.4624, allocations: 4 kB / 0.5009 GB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002081/0.4626, allocations: 31.92 kB / 0.501 GB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.366e-05/0.4626, allocations: 4 kB / 0.501 GB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001254/0.4627, allocations: 7.906 kB / 0.501 GB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.448e-05/0.4628, allocations: 11.98 kB / 0.501 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.0001921/0.463, allocations: 124.2 kB / 0.5011 GB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001621/0.4632, allocations: 77.52 kB / 0.5012 GB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.34e-05/0.4632, allocations: 16.73 kB / 0.5012 GB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.875e-06/0.4633, allocations: 7.938 kB / 0.5012 GB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.4633, allocations: 0 / 0.5012 GB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.4633, allocations: 0 / 0.5012 GB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006824/0.464, allocations: 403 kB / 0.5016 GB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.464, allocations: 0 / 0.5016 GB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001418/0.4642, allocations: 23.98 kB / 0.5016 GB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.4642, allocations: 0 / 0.5016 GB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.024e-05/0.4642, allocations: 3.984 kB / 0.5016 GB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.663e-06/0.4642, allocations: 4 kB / 0.5016 GB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.4642, allocations: 0 / 0.5016 GB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004648/0.4647, allocations: 285.9 kB / 0.5019 GB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.931e-05/0.4648, allocations: 92.92 kB / 0.502 GB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.475e-05/0.4648, allocations: 0 / 0.502 GB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000198/0.4651, allocations: 11.98 kB / 0.502 GB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.441e-05/0.4651, allocations: 7.984 kB / 0.502 GB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.693e-05/0.4652, allocations: 8 kB / 0.502 GB, free: 13.15 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001179/0.4653, allocations: 115.8 kB / 0.5021 GB, free: 13.04 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.5e-07/0.4653, allocations: 0 / 0.5021 GB, free: 13.04 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003914/0.4657, allocations: 23.95 kB / 0.5021 GB, free: 13.02 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.0001781/0.4659, allocations: 107.3 kB / 0.5022 GB, free: 12.9 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003019/0.4662, allocations: 99.84 kB / 0.5023 GB, free: 12.8 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/0.4662, allocations: 0 / 0.5023 GB, free: 12.8 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000111/0.4663, allocations: 40.03 kB / 0.5024 GB, free: 12.76 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003768/0.4667, allocations: 40.11 kB / 0.5024 GB, free: 12.72 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006387/0.4674, allocations: 224 kB / 0.5026 GB, free: 12.47 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003463/0.4678, allocations: 0.7197 MB / 0.5033 GB, free: 11.73 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.721e-05/0.4678, allocations: 19.38 kB / 0.5033 GB, free: 11.71 MB / 362.7 MB Notification: Performance of SimCode: time 1.142e-06/0.4679, allocations: 3.938 kB / 0.5033 GB, free: 11.7 MB / 362.7 MB Notification: Performance of Templates: time 0.004758/0.4726, allocations: 1.562 MB / 0.5049 GB, free: 10.14 MB / 362.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)