Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.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.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001542/0.001541, allocations: 181 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.013/2.013, 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.001208/0.001208, allocations: 90.64 kB / 267.6 MB, free: 14.11 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.09872/0.09872, allocations: 12.59 MB / 328.2 MB, free: 11.16 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.453e-05/6.493e-05, allocations: 7.938 kB / 386 MB, free: 1.305 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3025/0.3026, allocations: 50.37 MB / 436.4 MB, free: 14.15 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1454/0.4481, allocations: 81.77 MB / 0.506 GB, free: 12.27 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003579/0.4485, allocations: 79.95 kB / 0.5061 GB, free: 12.2 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0287/0.4772, allocations: 5.934 MB / 0.5118 GB, free: 6.254 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.993e-06/0.4773, allocations: 4 kB / 0.5119 GB, free: 6.25 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.494e-05/0.4773, allocations: 4 kB / 0.5119 GB, free: 6.246 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.0008731/0.4782, allocations: 499.5 kB / 0.5123 GB, free: 5.707 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.673e-05/0.4783, allocations: 12.03 kB / 0.5123 GB, free: 5.695 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001021/0.4784, allocations: 19.72 kB / 0.5124 GB, free: 5.676 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006682/0.4791, allocations: 282.5 kB / 0.5126 GB, free: 5.359 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.637e-05/0.4791, allocations: 15.94 kB / 0.5126 GB, free: 5.344 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.821e-05/0.4792, allocations: 7.938 kB / 0.5127 GB, free: 5.336 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004274/0.4796, allocations: 151.5 kB / 0.5128 GB, free: 5.16 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.4796, allocations: 0 / 0.5128 GB, free: 5.16 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.198e-05/0.4797, allocations: 4 kB / 0.5128 GB, free: 5.156 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.969e-06/0.4797, allocations: 4 kB / 0.5128 GB, free: 5.152 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000136/0.4798, allocations: 39.92 kB / 0.5128 GB, free: 5.113 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009082/0.4808, allocations: 402.3 kB / 0.5132 GB, free: 4.664 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002775/0.4811, allocations: 115.9 kB / 0.5133 GB, free: 4.523 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001191/0.4812, allocations: 50.69 kB / 0.5134 GB, free: 4.465 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.379e-05/0.4813, allocations: 0 / 0.5134 GB, free: 4.465 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002175/0.4815, allocations: 87.33 kB / 0.5135 GB, free: 4.367 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 2.164e-06/0.4815, allocations: 0 / 0.5135 GB, free: 4.367 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0004584/0.482, allocations: 121.3 kB / 0.5136 GB, free: 4.242 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001215/0.4821, allocations: 162.2 kB / 0.5137 GB, free: 4.047 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005688/0.4827, allocations: 291.1 kB / 0.514 GB, free: 3.754 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.23e-05/0.4827, allocations: 33.69 kB / 0.514 GB, free: 3.715 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000133/0.4829, allocations: 182.5 kB / 0.5142 GB, free: 3.535 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.7e-05/0.4829, allocations: 19.81 kB / 0.5142 GB, free: 3.516 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.366e-06/0.483, allocations: 0 / 0.5142 GB, free: 3.516 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.4831, allocations: 322.8 kB / 0.5145 GB, free: 3.191 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.565e-05/0.4832, allocations: 20 kB / 0.5146 GB, free: 3.172 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000169/0.4834, allocations: 86.86 kB / 0.5147 GB, free: 3.062 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001047/0.4835, allocations: 35.09 kB / 0.5147 GB, free: 3.031 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.4835, allocations: 0 / 0.5147 GB, free: 3.031 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003009/0.4838, allocations: 109.5 kB / 0.5148 GB, free: 2.918 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.546e-05/0.4839, allocations: 8 kB / 0.5148 GB, free: 2.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.4839, allocations: 128 / 0.5148 GB, free: 2.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.727e-05/0.484, allocations: 11.98 kB / 0.5148 GB, free: 2.898 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002165/0.4842, allocations: 15.94 kB / 0.5148 GB, free: 2.883 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.185e-05/0.4842, allocations: 4 kB / 0.5148 GB, free: 2.879 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001804/0.4844, allocations: 11.98 kB / 0.5148 GB, free: 2.867 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.841e-05/0.4845, allocations: 4 kB / 0.5148 GB, free: 2.863 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,shiftSample1.y,shiftSample1.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.000134/0.4846, allocations: 120.7 kB / 0.515 GB, free: 2.738 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001577/0.4848, allocations: 69.34 kB / 0.515 GB, free: 2.664 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003888/0.4852, allocations: 123.6 kB / 0.5151 GB, free: 2.539 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.675e-06/0.4852, allocations: 4 kB / 0.5151 GB, free: 2.535 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.361e-06/0.4852, allocations: 0 / 0.5151 GB, free: 2.535 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.034e-06/0.4852, allocations: 0 / 0.5151 GB, free: 2.535 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003627/0.4856, allocations: 257.5 kB / 0.5154 GB, free: 2.234 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.71e-06/0.4856, allocations: 3.984 kB / 0.5154 GB, free: 2.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001461/0.4858, allocations: 11.94 kB / 0.5154 GB, free: 2.219 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.608e-06/0.4858, allocations: 4 kB / 0.5154 GB, free: 2.215 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.136e-05/0.4858, allocations: 8.109 kB / 0.5154 GB, free: 2.207 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.514e-06/0.4859, allocations: 7.938 kB / 0.5154 GB, free: 2.199 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.4859, allocations: 4 kB / 0.5154 GB, free: 2.195 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003965/0.4863, allocations: 189.9 kB / 0.5156 GB, free: 1.973 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001865/0.4865, allocations: 120.8 kB / 0.5157 GB, free: 1.836 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.969e-05/0.4865, allocations: 4 kB / 0.5157 GB, free: 1.832 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001336/0.4867, allocations: 12 kB / 0.5157 GB, free: 1.82 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.665e-05/0.4868, allocations: 7.984 kB / 0.5157 GB, free: 1.812 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.981e-05/0.4868, allocations: 4 kB / 0.5158 GB, free: 1.809 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004195/0.4872, allocations: 239.1 kB / 0.516 GB, free: 1.574 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4872, allocations: 0 / 0.516 GB, free: 1.574 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004412/0.4877, allocations: 55.88 kB / 0.516 GB, free: 1.52 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,shiftSample1.y,sample.y,shiftSample1.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.001247/0.489, allocations: 392.9 kB / 0.5164 GB, free: 1.125 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003976/0.4894, allocations: 87.91 kB / 0.5165 GB, free: 1.039 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.4894, allocations: 0 / 0.5165 GB, free: 1.039 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001086/0.4895, allocations: 35.92 kB / 0.5165 GB, free: 1.004 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005812/0.4901, allocations: 56.44 kB / 0.5166 GB, free: 0.9492 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001049/0.4912, allocations: 306.6 kB / 0.5169 GB, free: 0.6172 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2861/0.7773, allocations: 0.7436 MB / 0.5176 GB, free: 85.52 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001581/0.7775, allocations: 23.81 kB / 0.5176 GB, free: 85.51 MB / 362.7 MB Notification: Performance of SimCode: time 1.723e-06/0.7775, allocations: 0 / 0.5176 GB, free: 85.51 MB / 362.7 MB Notification: Performance of Templates: time 0.009896/0.7875, allocations: 2.948 MB / 0.5205 GB, free: 85.38 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches