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.001334/0.001334, allocations: 171.8 kB / 16.8 MB, free: 5 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.722/1.722, allocations: 205.4 MB / 223 MB, free: 9.023 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.0007785/0.0007785, allocations: 83.11 kB / 271.3 MB, free: 8.254 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.1004/0.1004, allocations: 12.59 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004643/0.0004644, allocations: 12 kB / 393.2 MB, free: 65.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1147, allocations: 50.37 MB / 443.6 MB, free: 15.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3839/0.4987, allocations: 79.4 MB / 0.5107 GB, free: 13.21 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002176/0.499, allocations: 59.28 kB / 0.5108 GB, free: 13.2 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006726/0.5057, allocations: 2.338 MB / 0.5131 GB, free: 12.18 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.364e-06/0.5058, allocations: 0 / 0.5131 GB, free: 12.18 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.448e-05/0.5058, allocations: 6.406 kB / 0.5131 GB, free: 12.18 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.0005408/0.5063, allocations: 417 kB / 0.5135 GB, free: 11.77 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/0.5064, allocations: 11.41 kB / 0.5135 GB, free: 11.77 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.871e-05/0.5064, allocations: 16.47 kB / 0.5135 GB, free: 11.77 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001883/0.5066, allocations: 218.8 kB / 0.5137 GB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.718e-05/0.5067, allocations: 4.219 kB / 0.5137 GB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.878e-05/0.5067, allocations: 11.28 kB / 0.5137 GB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003667/0.5071, allocations: 209.6 kB / 0.5139 GB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.5071, allocations: 192 / 0.5139 GB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.721e-05/0.5071, allocations: 11.31 kB / 0.5139 GB, free: 11.42 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.5071, allocations: 3.906 kB / 0.5139 GB, free: 11.42 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001505/0.5073, allocations: 72.31 kB / 0.514 GB, free: 11.4 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004514/0.5077, allocations: 344.4 kB / 0.5143 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001857/0.5079, allocations: 147.8 kB / 0.5145 GB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001072/0.5081, allocations: 66.78 kB / 0.5145 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.756e-05/0.5081, allocations: 3.906 kB / 0.5145 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001469/0.5082, allocations: 100.8 kB / 0.5146 GB, free: 10.91 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 1.413e-06/0.5083, allocations: 0 / 0.5146 GB, free: 10.91 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004451/0.5087, allocations: 243.3 kB / 0.5149 GB, free: 10.84 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.926e-05/0.5088, allocations: 84.64 kB / 0.515 GB, free: 10.74 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.911e-05/0.5089, allocations: 159.5 kB / 0.5151 GB, free: 10.62 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.581e-05/0.5089, allocations: 33.39 kB / 0.5151 GB, free: 10.59 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.495e-05/0.5089, allocations: 99.02 kB / 0.5152 GB, free: 10.51 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.61e-05/0.509, allocations: 22.56 kB / 0.5153 GB, free: 10.49 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.089e-06/0.509, allocations: 7.781 kB / 0.5153 GB, free: 10.49 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.681e-05/0.509, allocations: 337.4 kB / 0.5156 GB, free: 10.16 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.642e-05/0.5091, allocations: 30.42 kB / 0.5156 GB, free: 10.16 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.179e-05/0.5092, allocations: 111 kB / 0.5157 GB, free: 10.06 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002023/0.5094, allocations: 167.2 kB / 0.5159 GB, free: 9.941 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.5094, allocations: 0 / 0.5159 GB, free: 9.941 MB / 330.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002285/0.5097, allocations: 178.3 kB / 0.516 GB, free: 9.871 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/0.5097, allocations: 7.781 kB / 0.5161 GB, free: 9.871 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.5097, allocations: 3.594 kB / 0.5161 GB, free: 9.871 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.5097, allocations: 3.969 kB / 0.5161 GB, free: 9.871 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001/0.5098, allocations: 27.64 kB / 0.5161 GB, free: 9.859 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.5098, allocations: 3.875 kB / 0.5161 GB, free: 9.859 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.454e-05/0.5099, allocations: 15.09 kB / 0.5161 GB, free: 9.855 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.067e-05/0.5099, allocations: 3.844 kB / 0.5161 GB, free: 9.855 MB / 330.7 MB Warning: Assuming fixed start value for the following 1 variables: stateSpace2.y[1]:DISCRETE(fixed = true ) "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 () * Number of clocked states: 1 (stateSpace1.x[1]) * 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.0001854/0.5101, allocations: 147.5 kB / 0.5162 GB, free: 9.727 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.81e-05/0.5102, allocations: 85.66 kB / 0.5163 GB, free: 9.676 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.049e-05/0.5103, allocations: 20.33 kB / 0.5164 GB, free: 9.668 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.5103, allocations: 4 kB / 0.5164 GB, free: 9.664 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.5103, allocations: 0 / 0.5164 GB, free: 9.664 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.5103, allocations: 4.219 kB / 0.5164 GB, free: 9.664 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004192/0.5107, allocations: 453.2 kB / 0.5168 GB, free: 9.309 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.5107, allocations: 0 / 0.5168 GB, free: 9.309 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.051e-05/0.5108, allocations: 18.36 kB / 0.5168 GB, free: 9.305 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.5108, allocations: 0 / 0.5168 GB, free: 9.305 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.287e-05/0.5108, allocations: 7.844 kB / 0.5168 GB, free: 9.301 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.5108, allocations: 3.984 kB / 0.5168 GB, free: 9.297 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.5109, allocations: 3.938 kB / 0.5168 GB, free: 9.293 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002883/0.5111, allocations: 292.3 kB / 0.5171 GB, free: 9.125 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.751e-05/0.5112, allocations: 92.81 kB / 0.5172 GB, free: 9.02 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.741e-05/0.5112, allocations: 7.938 kB / 0.5172 GB, free: 9.016 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001055/0.5113, allocations: 14.92 kB / 0.5172 GB, free: 9.012 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.732e-05/0.5114, allocations: 11.78 kB / 0.5172 GB, free: 9.004 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.404e-05/0.5114, allocations: 11.89 kB / 0.5172 GB, free: 8.996 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.692e-05/0.5115, allocations: 117.8 kB / 0.5173 GB, free: 8.91 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5115, allocations: 0 / 0.5173 GB, free: 8.91 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002469/0.5117, allocations: 25.59 kB / 0.5174 GB, free: 8.91 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]) * Number of clocked states: 1 (stateSpace1.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.0001058/0.5118, allocations: 110.3 kB / 0.5175 GB, free: 8.809 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002273/0.5121, allocations: 125.4 kB / 0.5176 GB, free: 8.781 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.5121, allocations: 0 / 0.5176 GB, free: 8.781 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.012e-05/0.5122, allocations: 42.86 kB / 0.5176 GB, free: 8.777 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003411/0.5125, allocations: 50.56 kB / 0.5177 GB, free: 8.758 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004727/0.513, allocations: 296.6 kB / 0.518 GB, free: 8.551 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001586/0.5132, allocations: 0.7227 MB / 0.5187 GB, free: 7.836 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.176e-05/0.5132, allocations: 12.47 kB / 0.5187 GB, free: 7.828 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.263e-05/0.5132, allocations: 11.38 kB / 0.5187 GB, free: 7.82 MB / 330.7 MB Notification: Performance of SimCode: time 2.21e-07/0.5133, allocations: 3.906 kB / 0.5187 GB, free: 7.82 MB / 330.7 MB Notification: Performance of Templates: time 0.003193/0.5164, allocations: 1.021 MB / 0.5197 GB, free: 6.863 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)