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.00157/0.00157, allocations: 186 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.045/2.045, 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.001066/0.001066, allocations: 98.56 kB / 267.6 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.09731/0.09731, allocations: 12.61 MB / 328.2 MB, free: 11.17 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.757e-05/3.768e-05, allocations: 8 kB / 386 MB, free: 1.316 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3019/0.3019, allocations: 50.36 MB / 436.3 MB, free: 14.17 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1441/0.4461, allocations: 81.79 MB / 0.506 GB, free: 12.27 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000347/0.4466, allocations: 83.94 kB / 0.5061 GB, free: 12.18 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02974/0.4763, allocations: 6.453 MB / 0.5124 GB, free: 5.723 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.117e-06/0.4764, allocations: 4 kB / 0.5124 GB, free: 5.719 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.2e-05/0.4764, allocations: 7.938 kB / 0.5124 GB, free: 5.711 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.0008029/0.4772, allocations: 495.5 kB / 0.5129 GB, free: 5.176 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.294e-05/0.4773, allocations: 12.03 kB / 0.5129 GB, free: 5.164 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.026e-05/0.4774, allocations: 19.72 kB / 0.5129 GB, free: 5.145 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006337/0.478, allocations: 290.5 kB / 0.5132 GB, free: 4.82 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.593e-05/0.4781, allocations: 3.953 kB / 0.5132 GB, free: 4.816 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.31e-05/0.4781, allocations: 16 kB / 0.5132 GB, free: 4.801 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004382/0.4786, allocations: 147.6 kB / 0.5133 GB, free: 4.629 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/0.4786, allocations: 3.938 kB / 0.5133 GB, free: 4.625 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.88e-05/0.4786, allocations: 0 / 0.5133 GB, free: 4.625 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.4787, allocations: 0 / 0.5133 GB, free: 4.625 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001344/0.4788, allocations: 39.98 kB / 0.5134 GB, free: 4.586 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007932/0.4796, allocations: 406.3 kB / 0.5137 GB, free: 4.133 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002574/0.4799, allocations: 111.9 kB / 0.5139 GB, free: 3.996 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001096/0.48, allocations: 46.69 kB / 0.5139 GB, free: 3.941 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.755e-05/0.4801, allocations: 0 / 0.5139 GB, free: 3.941 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002056/0.4803, allocations: 79.33 kB / 0.514 GB, free: 3.852 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 4.097e-06/0.4803, allocations: 3.984 kB / 0.514 GB, free: 3.848 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0004107/0.4807, allocations: 129.3 kB / 0.5141 GB, free: 3.715 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001038/0.4808, allocations: 162.2 kB / 0.5143 GB, free: 3.52 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005407/0.4814, allocations: 295.1 kB / 0.5145 GB, free: 3.223 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.549e-05/0.4814, allocations: 29.7 kB / 0.5146 GB, free: 3.188 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.4816, allocations: 174.6 kB / 0.5147 GB, free: 3.016 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.392e-05/0.4816, allocations: 27.69 kB / 0.5148 GB, free: 2.988 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.225e-06/0.4816, allocations: 0 / 0.5148 GB, free: 2.988 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.4818, allocations: 326.8 kB / 0.5151 GB, free: 2.66 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.92e-05/0.4819, allocations: 20 kB / 0.5151 GB, free: 2.641 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000158/0.482, allocations: 90.78 kB / 0.5152 GB, free: 2.527 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001035/0.4822, allocations: 39.17 kB / 0.5152 GB, free: 2.492 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.4822, allocations: 0 / 0.5152 GB, free: 2.492 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003055/0.4825, allocations: 113.4 kB / 0.5153 GB, free: 2.375 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.28e-05/0.4825, allocations: 8 kB / 0.5153 GB, free: 2.367 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.004e-06/0.4826, allocations: 128 / 0.5153 GB, free: 2.367 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.4826, allocations: 4 kB / 0.5153 GB, free: 2.363 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002004/0.4828, allocations: 16 kB / 0.5153 GB, free: 2.348 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.29e-05/0.4828, allocations: 3.984 kB / 0.5154 GB, free: 2.344 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001604/0.483, allocations: 8 kB / 0.5154 GB, free: 2.336 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.592e-05/0.483, allocations: 4 kB / 0.5154 GB, free: 2.332 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.0001206/0.4831, allocations: 121.8 kB / 0.5155 GB, free: 2.207 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001334/0.4833, allocations: 65.41 kB / 0.5155 GB, free: 2.137 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003608/0.4837, allocations: 127.6 kB / 0.5157 GB, free: 2.008 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.4837, allocations: 0 / 0.5157 GB, free: 2.008 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.4837, allocations: 4 kB / 0.5157 GB, free: 2.004 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.745e-06/0.4837, allocations: 3.984 kB / 0.5157 GB, free: 2 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003315/0.4841, allocations: 245.5 kB / 0.5159 GB, free: 1.711 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.4841, allocations: 7.938 kB / 0.5159 GB, free: 1.703 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001275/0.4842, allocations: 11.98 kB / 0.5159 GB, free: 1.691 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.124e-06/0.4842, allocations: 4 kB / 0.5159 GB, free: 1.688 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.729e-05/0.4843, allocations: 4 kB / 0.5159 GB, free: 1.684 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.4843, allocations: 0 / 0.5159 GB, free: 1.684 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.815e-06/0.4843, allocations: 11.94 kB / 0.5159 GB, free: 1.672 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003569/0.4847, allocations: 185.9 kB / 0.5161 GB, free: 1.453 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001763/0.4849, allocations: 124.7 kB / 0.5162 GB, free: 1.312 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.506e-05/0.4849, allocations: 8 kB / 0.5162 GB, free: 1.305 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001239/0.4851, allocations: 12.06 kB / 0.5163 GB, free: 1.293 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.726e-05/0.4851, allocations: 12.08 kB / 0.5163 GB, free: 1.281 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.811e-05/0.4852, allocations: 7.938 kB / 0.5163 GB, free: 1.273 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003938/0.4856, allocations: 239.1 kB / 0.5165 GB, free: 1.039 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.4856, allocations: 0 / 0.5165 GB, free: 1.039 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004186/0.486, allocations: 51.95 kB / 0.5166 GB, free: 0.9883 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.001179/0.4872, allocations: 381 kB / 0.5169 GB, free: 0.6055 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003436/0.4876, allocations: 91.84 kB / 0.517 GB, free: 0.5156 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.4876, allocations: 3.938 kB / 0.517 GB, free: 0.5117 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001045/0.4877, allocations: 31.98 kB / 0.517 GB, free: 492 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005184/0.4882, allocations: 56.38 kB / 0.5171 GB, free: 436 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007722/0.489, allocations: 314.5 kB / 0.5174 GB, free: 88 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.278/0.7671, allocations: 0.7443 MB / 0.5181 GB, free: 85.29 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001461/0.7673, allocations: 22.27 kB / 0.5181 GB, free: 85.28 MB / 362.7 MB Notification: Performance of SimCode: time 1.243e-06/0.7673, allocations: 0 / 0.5181 GB, free: 85.28 MB / 362.7 MB Notification: Performance of Templates: time 0.009051/0.7764, allocations: 2.933 MB / 0.521 GB, free: 85.15 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