Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.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.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001594/0.001594, allocations: 179.4 kB / 8.407 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.079/2.079, allocations: 205.3 MB / 214.1 MB, free: 1.723 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.001093/0.001093, allocations: 82.72 kB / 262.2 MB, free: 1.676 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.1025/0.1025, allocations: 12.6 MB / 322.7 MB, free: 15.19 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.113e-05/2.121e-05, allocations: 3.984 kB / 378.9 MB, free: 6.891 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.344/0.3441, allocations: 50.37 MB / 429.3 MB, free: 18.41 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1704/0.5146, allocations: 81.12 MB / 0.4984 GB, free: 1.184 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004451/0.5151, allocations: 79.95 kB / 0.4985 GB, free: 1.105 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04326/0.5584, allocations: 6.415 MB / 0.5048 GB, free: 10.69 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.405e-06/0.5584, allocations: 7.938 kB / 0.5048 GB, free: 10.68 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.605e-05/0.5585, allocations: 0 / 0.5048 GB, free: 10.68 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001088/0.5596, allocations: 0.4956 MB / 0.5053 GB, free: 10.13 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.716e-05/0.5597, allocations: 8.031 kB / 0.5053 GB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000124/0.5599, allocations: 23.72 kB / 0.5053 GB, free: 10.1 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000904/0.5608, allocations: 286.5 kB / 0.5056 GB, free: 9.781 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.311e-05/0.5608, allocations: 7.953 kB / 0.5056 GB, free: 9.773 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.861e-05/0.5609, allocations: 4 kB / 0.5056 GB, free: 9.77 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002221/0.5611, allocations: 35.98 kB / 0.5056 GB, free: 9.734 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005006/0.5617, allocations: 147.5 kB / 0.5058 GB, free: 9.562 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.5617, allocations: 0 / 0.5058 GB, free: 9.562 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.386e-05/0.5617, allocations: 0 / 0.5058 GB, free: 9.562 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.21e-05/0.5618, allocations: 4 kB / 0.5058 GB, free: 9.559 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001021/0.5628, allocations: 378.9 kB / 0.5061 GB, free: 9.145 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000341/0.5632, allocations: 103.9 kB / 0.5062 GB, free: 9.016 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001611/0.5634, allocations: 54.69 kB / 0.5063 GB, free: 8.953 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.855e-05/0.5634, allocations: 8 kB / 0.5063 GB, free: 8.945 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002667/0.5637, allocations: 75.33 kB / 0.5064 GB, free: 8.859 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 3.787e-06/0.5637, allocations: 0 / 0.5064 GB, free: 8.859 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0005849/0.5643, allocations: 117.3 kB / 0.5065 GB, free: 8.738 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001475/0.5645, allocations: 162.2 kB / 0.5066 GB, free: 8.543 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007731/0.5653, allocations: 282.3 kB / 0.5069 GB, free: 8.266 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.603e-05/0.5654, allocations: 29.7 kB / 0.5069 GB, free: 8.23 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001844/0.5656, allocations: 182.5 kB / 0.5071 GB, free: 8.051 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.064e-05/0.5656, allocations: 15.69 kB / 0.5071 GB, free: 8.035 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.184e-05/0.5657, allocations: 0 / 0.5071 GB, free: 8.035 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002035/0.5659, allocations: 326.9 kB / 0.5074 GB, free: 7.707 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001069/0.566, allocations: 23.98 kB / 0.5074 GB, free: 7.684 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002262/0.5663, allocations: 78.86 kB / 0.5075 GB, free: 7.582 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001577/0.5664, allocations: 39.92 kB / 0.5076 GB, free: 7.543 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.842e-06/0.5665, allocations: 0 / 0.5076 GB, free: 7.543 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000428/0.5669, allocations: 97.52 kB / 0.5076 GB, free: 7.441 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.96e-05/0.567, allocations: 4 kB / 0.5076 GB, free: 7.438 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.567, allocations: 0 / 0.5076 GB, free: 7.438 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.094e-05/0.567, allocations: 4 kB / 0.5077 GB, free: 7.434 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002916/0.5674, allocations: 23.92 kB / 0.5077 GB, free: 7.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.5674, allocations: 0 / 0.5077 GB, free: 7.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002528/0.5677, allocations: 8.125 kB / 0.5077 GB, free: 7.402 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.824e-05/0.5677, allocations: 7.984 kB / 0.5077 GB, free: 7.395 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,subSample.y,subSample.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001728/0.5679, allocations: 110.1 kB / 0.5078 GB, free: 7.281 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002032/0.5681, allocations: 65.36 kB / 0.5079 GB, free: 7.211 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005137/0.5687, allocations: 115.5 kB / 0.508 GB, free: 7.086 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/0.5687, allocations: 4 kB / 0.508 GB, free: 7.082 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.493e-06/0.5687, allocations: 0 / 0.508 GB, free: 7.082 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.5687, allocations: 4.062 kB / 0.508 GB, free: 7.078 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004334/0.5692, allocations: 226.1 kB / 0.5082 GB, free: 6.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.807e-06/0.5692, allocations: 4.109 kB / 0.5082 GB, free: 6.816 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001969/0.5694, allocations: 27.88 kB / 0.5082 GB, free: 6.789 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.334e-06/0.5694, allocations: 0 / 0.5082 GB, free: 6.789 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.433e-05/0.5695, allocations: 4 kB / 0.5082 GB, free: 6.785 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/0.5695, allocations: 0 / 0.5082 GB, free: 6.785 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.5695, allocations: 80 / 0.5082 GB, free: 6.785 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005532/0.5701, allocations: 197.8 kB / 0.5084 GB, free: 6.555 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002728/0.5704, allocations: 124.7 kB / 0.5085 GB, free: 6.414 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001057/0.5705, allocations: 4 kB / 0.5085 GB, free: 6.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001855/0.5707, allocations: 4 kB / 0.5085 GB, free: 6.406 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.938e-05/0.5708, allocations: 7.984 kB / 0.5085 GB, free: 6.398 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.819e-05/0.5709, allocations: 4 kB / 0.5086 GB, free: 6.395 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005711/0.5715, allocations: 238 kB / 0.5088 GB, free: 6.16 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.21e-07/0.5715, allocations: 0 / 0.5088 GB, free: 6.16 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007221/0.5722, allocations: 40 kB / 0.5088 GB, free: 6.121 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample.y,sample.y,subSample.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.00166/0.5739, allocations: 361.8 kB / 0.5092 GB, free: 5.77 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004674/0.5744, allocations: 83.91 kB / 0.5092 GB, free: 5.688 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.5744, allocations: 0 / 0.5092 GB, free: 5.688 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001599/0.5746, allocations: 31.98 kB / 0.5093 GB, free: 5.656 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007738/0.5754, allocations: 55.77 kB / 0.5093 GB, free: 5.605 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001155/0.5766, allocations: 313.1 kB / 0.5096 GB, free: 5.266 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006151/0.5772, allocations: 0.7479 MB / 0.5104 GB, free: 4.492 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001552/0.5774, allocations: 19.44 kB / 0.5104 GB, free: 4.477 MB / 362.7 MB Notification: Performance of SimCode: time 1.403e-06/0.5774, allocations: 0 / 0.5104 GB, free: 4.477 MB / 362.7 MB Notification: Performance of Templates: time 0.01193/0.5894, allocations: 2.924 MB / 0.5132 GB, free: 1.551 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches