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.001507/0.001506, allocations: 186.8 kB / 13.7 MB, free: 1.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.038/2.038, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001062/0.001062, allocations: 82.72 kB / 267.5 MB, free: 14.12 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.09935/0.09935, allocations: 12.6 MB / 328.2 MB, free: 11.16 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.374e-05/4.385e-05, allocations: 4 kB / 386 MB, free: 1.316 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3365/0.3366, allocations: 50.37 MB / 436.3 MB, free: 14.16 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1392/0.4759, allocations: 79.27 MB / 0.5035 GB, free: 14.79 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002337/0.4762, allocations: 59.95 kB / 0.5036 GB, free: 14.73 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01137/0.4876, allocations: 2.324 MB / 0.5058 GB, free: 12.39 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.4877, allocations: 4 kB / 0.5059 GB, free: 12.38 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.831e-05/0.4877, allocations: 4 kB / 0.5059 GB, free: 12.38 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.0007757/0.4885, allocations: 410.2 kB / 0.5062 GB, free: 11.93 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.507e-05/0.4886, allocations: 8.031 kB / 0.5063 GB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.994e-05/0.4886, allocations: 19.81 kB / 0.5063 GB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002866/0.4889, allocations: 203 kB / 0.5065 GB, free: 11.67 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.149e-05/0.489, allocations: 7.953 kB / 0.5065 GB, free: 11.66 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.612e-05/0.489, allocations: 15.98 kB / 0.5065 GB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005264/0.4896, allocations: 192.9 kB / 0.5067 GB, free: 11.44 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.4896, allocations: 4 kB / 0.5067 GB, free: 11.43 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.33e-05/0.4896, allocations: 7.938 kB / 0.5067 GB, free: 11.43 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.012e-06/0.4896, allocations: 0 / 0.5067 GB, free: 11.43 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002083/0.4899, allocations: 63.97 kB / 0.5067 GB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006944/0.4906, allocations: 341.5 kB / 0.5071 GB, free: 10.98 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003054/0.4909, allocations: 125.2 kB / 0.5072 GB, free: 10.84 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001668/0.4911, allocations: 61.7 kB / 0.5073 GB, free: 10.77 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.094e-05/0.4911, allocations: 3.938 kB / 0.5073 GB, free: 10.77 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002073/0.4913, allocations: 95.31 kB / 0.5073 GB, free: 10.66 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 2.836e-06/0.4914, allocations: 0 / 0.5073 GB, free: 10.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005108/0.4919, allocations: 173.4 kB / 0.5075 GB, free: 10.48 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.582e-05/0.492, allocations: 97.06 kB / 0.5076 GB, free: 10.37 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001714/0.4922, allocations: 137.3 kB / 0.5077 GB, free: 10.23 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.162e-05/0.4922, allocations: 29.7 kB / 0.5078 GB, free: 10.19 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.828e-05/0.4923, allocations: 166.5 kB / 0.5079 GB, free: 10.03 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.002e-05/0.4924, allocations: 31.8 kB / 0.508 GB, free: 9.996 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.086e-05/0.4924, allocations: 4 kB / 0.508 GB, free: 9.992 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.4925, allocations: 322.8 kB / 0.5083 GB, free: 9.668 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.564e-05/0.4926, allocations: 28 kB / 0.5083 GB, free: 9.641 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001365/0.4928, allocations: 93.39 kB / 0.5084 GB, free: 9.516 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001374/0.4929, allocations: 52.69 kB / 0.5084 GB, free: 9.465 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.4929, allocations: 4 kB / 0.5084 GB, free: 9.461 MB / 362.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003608/0.4933, allocations: 153.4 kB / 0.5086 GB, free: 9.305 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.305e-05/0.4933, allocations: 9.25 kB / 0.5086 GB, free: 9.297 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.999e-06/0.4934, allocations: 4 kB / 0.5086 GB, free: 9.293 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.993e-05/0.4934, allocations: 0 / 0.5086 GB, free: 9.293 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002103/0.4936, allocations: 28.38 kB / 0.5086 GB, free: 9.266 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.628e-05/0.4936, allocations: 15.92 kB / 0.5086 GB, free: 9.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001277/0.4938, allocations: 11.84 kB / 0.5086 GB, free: 9.238 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.24e-05/0.4938, allocations: 12 kB / 0.5087 GB, free: 9.227 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.0001826/0.494, allocations: 124.7 kB / 0.5088 GB, free: 9.098 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000172/0.4942, allocations: 77.52 kB / 0.5089 GB, free: 9.016 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.877e-05/0.4943, allocations: 20.61 kB / 0.5089 GB, free: 8.996 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.4943, allocations: 0 / 0.5089 GB, free: 8.996 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.4943, allocations: 8 kB / 0.5089 GB, free: 8.988 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.4943, allocations: 0 / 0.5089 GB, free: 8.988 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007306/0.4951, allocations: 438.3 kB / 0.5093 GB, free: 8.504 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.4951, allocations: 0 / 0.5093 GB, free: 8.504 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001392/0.4952, allocations: 15.98 kB / 0.5093 GB, free: 8.488 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.833e-06/0.4952, allocations: 0 / 0.5093 GB, free: 8.488 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.942e-05/0.4953, allocations: 11.98 kB / 0.5093 GB, free: 8.477 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/0.4953, allocations: 0 / 0.5093 GB, free: 8.477 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/0.4953, allocations: 3.938 kB / 0.5093 GB, free: 8.473 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000485/0.4958, allocations: 293.9 kB / 0.5096 GB, free: 8.16 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.771e-05/0.4959, allocations: 88.92 kB / 0.5097 GB, free: 8.055 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.884e-05/0.4959, allocations: 4 kB / 0.5097 GB, free: 8.051 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001907/0.4961, allocations: 15.98 kB / 0.5097 GB, free: 8.035 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.968e-05/0.4962, allocations: 15.94 kB / 0.5097 GB, free: 8.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.551e-05/0.4963, allocations: 4 kB / 0.5097 GB, free: 8.016 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001252/0.4964, allocations: 119.9 kB / 0.5098 GB, free: 7.898 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-07/0.4964, allocations: 0 / 0.5098 GB, free: 7.898 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003892/0.4968, allocations: 27.98 kB / 0.5099 GB, free: 7.871 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.0001593/0.497, allocations: 103.1 kB / 0.51 GB, free: 7.762 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003373/0.4973, allocations: 116.5 kB / 0.5101 GB, free: 7.648 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.4973, allocations: 0 / 0.5101 GB, free: 7.648 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001258/0.4975, allocations: 39.92 kB / 0.5101 GB, free: 7.609 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003538/0.4978, allocations: 36.16 kB / 0.5102 GB, free: 7.574 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006729/0.4985, allocations: 228.2 kB / 0.5104 GB, free: 7.32 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003181/0.4989, allocations: 0.7239 MB / 0.5111 GB, free: 6.57 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.379e-05/0.4989, allocations: 19.42 kB / 0.5111 GB, free: 6.551 MB / 362.7 MB Notification: Performance of SimCode: time 9.02e-07/0.4989, allocations: 0 / 0.5111 GB, free: 6.551 MB / 362.7 MB Notification: Performance of Templates: time 0.004656/0.5036, allocations: 1.584 MB / 0.5126 GB, free: 4.965 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)