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.002106/0.002105, allocations: 185.1 kB / 16.44 MB, free: 5.691 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.977/1.977, allocations: 205.4 MB / 222.6 MB, free: 9.129 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.00116/0.00116, allocations: 93.53 kB / 270.9 MB, free: 8.367 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.1195/0.1195, allocations: 12.58 MB / 331.8 MB, free: 11.4 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007912/0.0007914, allocations: 16 kB / 392 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08868/0.08952, allocations: 50.37 MB / 442.3 MB, free: 16.49 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4283/0.5179, allocations: 81.86 MB / 0.5119 GB, free: 12.04 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002525/0.5182, allocations: 84.42 kB / 0.512 GB, free: 12.03 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02422/0.5425, allocations: 5.951 MB / 0.5178 GB, free: 9.637 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.5425, allocations: 0 / 0.5178 GB, free: 9.637 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.118e-05/0.5426, allocations: 4 kB / 0.5178 GB, free: 9.633 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008064/0.5434, allocations: 0.5293 MB / 0.5183 GB, free: 9.066 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.5434, allocations: 12.03 kB / 0.5183 GB, free: 9.055 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.122e-05/0.5435, allocations: 23.72 kB / 0.5184 GB, free: 9.031 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005154/0.544, allocations: 301 kB / 0.5186 GB, free: 8.723 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.666e-05/0.5441, allocations: 3.953 kB / 0.5187 GB, free: 8.719 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.518e-05/0.5441, allocations: 7.25 kB / 0.5187 GB, free: 8.715 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004093/0.5446, allocations: 159.7 kB / 0.5188 GB, free: 8.555 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.5446, allocations: 0 / 0.5188 GB, free: 8.555 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.015e-05/0.5446, allocations: 4 kB / 0.5188 GB, free: 8.551 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-06/0.5446, allocations: 0 / 0.5188 GB, free: 8.551 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001683/0.5448, allocations: 45.16 kB / 0.5189 GB, free: 8.52 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000654/0.5455, allocations: 396.1 kB / 0.5192 GB, free: 8.125 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003254/0.5458, allocations: 121.9 kB / 0.5194 GB, free: 8 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.181e-05/0.5459, allocations: 4 kB / 0.5194 GB, free: 7.996 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002161/0.5461, allocations: 84.97 kB / 0.5194 GB, free: 7.914 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 2.965e-06/0.5461, allocations: 4 kB / 0.5194 GB, free: 7.91 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0005703/0.5467, allocations: 145.7 kB / 0.5196 GB, free: 7.789 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.803e-05/0.5468, allocations: 173.7 kB / 0.5197 GB, free: 7.586 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004486/0.5473, allocations: 299.2 kB / 0.52 GB, free: 7.336 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.663e-05/0.5473, allocations: 25.7 kB / 0.5201 GB, free: 7.305 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.33e-05/0.5474, allocations: 187.9 kB / 0.5202 GB, free: 7.148 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.062e-05/0.5474, allocations: 18.92 kB / 0.5203 GB, free: 7.133 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.327e-06/0.5474, allocations: 0 / 0.5203 GB, free: 7.133 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.266e-05/0.5475, allocations: 322.7 kB / 0.5206 GB, free: 6.812 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001061/0.5476, allocations: 21.98 kB / 0.5206 GB, free: 6.797 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001635/0.5478, allocations: 95.16 kB / 0.5207 GB, free: 6.691 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001265/0.548, allocations: 38.42 kB / 0.5207 GB, free: 6.668 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.548, allocations: 0 / 0.5207 GB, free: 6.668 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000388/0.5484, allocations: 105.2 kB / 0.5208 GB, free: 6.578 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/0.5484, allocations: 8 kB / 0.5208 GB, free: 6.57 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.5484, allocations: 0 / 0.5208 GB, free: 6.57 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.823e-05/0.5484, allocations: 11.92 kB / 0.5208 GB, free: 6.559 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001767/0.5486, allocations: 18.94 kB / 0.5208 GB, free: 6.543 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.065e-05/0.5487, allocations: 7.984 kB / 0.5209 GB, free: 6.535 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000167/0.5488, allocations: 11.89 kB / 0.5209 GB, free: 6.523 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.462e-05/0.5489, allocations: 4 kB / 0.5209 GB, free: 6.52 MB / 330.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 () * Number of clocked 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.0001989/0.5491, allocations: 163 kB / 0.521 GB, free: 6.363 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001189/0.5492, allocations: 68.81 kB / 0.5211 GB, free: 6.297 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003708/0.5496, allocations: 124.4 kB / 0.5212 GB, free: 6.195 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.5496, allocations: 0 / 0.5212 GB, free: 6.195 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.5496, allocations: 0 / 0.5212 GB, free: 6.195 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.5496, allocations: 4 kB / 0.5212 GB, free: 6.191 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002381/0.5499, allocations: 252.1 kB / 0.5215 GB, free: 5.93 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.5499, allocations: 4.109 kB / 0.5215 GB, free: 5.926 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001208/0.55, allocations: 19.97 kB / 0.5215 GB, free: 5.906 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.07e-06/0.55, allocations: 0 / 0.5215 GB, free: 5.906 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.641e-05/0.5501, allocations: 6.688 kB / 0.5215 GB, free: 5.902 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.596e-06/0.5501, allocations: 320 / 0.5215 GB, free: 5.902 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.5501, allocations: 3.938 kB / 0.5215 GB, free: 5.898 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003687/0.5505, allocations: 203.8 kB / 0.5217 GB, free: 5.691 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001354/0.5506, allocations: 114.5 kB / 0.5218 GB, free: 5.566 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.08e-05/0.5507, allocations: 11.19 kB / 0.5218 GB, free: 5.559 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001157/0.5508, allocations: 4 kB / 0.5218 GB, free: 5.555 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.295e-05/0.5509, allocations: 11.23 kB / 0.5218 GB, free: 5.547 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.676e-05/0.5509, allocations: 4 kB / 0.5218 GB, free: 5.543 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003249/0.5512, allocations: 244 kB / 0.522 GB, free: 5.348 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5513, allocations: 4 kB / 0.5221 GB, free: 5.344 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004042/0.5517, allocations: 55.41 kB / 0.5221 GB, free: 5.297 MB / 330.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) * Number of clocked states: 0 () * 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.001175/0.5529, allocations: 430.8 kB / 0.5225 GB, free: 4.883 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004473/0.5533, allocations: 97.81 kB / 0.5226 GB, free: 4.809 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.5534, allocations: 3.938 kB / 0.5226 GB, free: 4.805 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001289/0.5535, allocations: 35.61 kB / 0.5226 GB, free: 4.777 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005334/0.554, allocations: 63.44 kB / 0.5227 GB, free: 4.727 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000829/0.5549, allocations: 431.2 kB / 0.5231 GB, free: 4.305 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002194/0.5551, allocations: 0.7474 MB / 0.5238 GB, free: 3.535 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.134e-05/0.5552, allocations: 26.98 kB / 0.5239 GB, free: 3.512 MB / 330.7 MB Notification: Performance of SimCode: time 1.152e-06/0.5552, allocations: 0 / 0.5239 GB, free: 3.512 MB / 330.7 MB Notification: Performance of Templates: time 0.006803/0.5621, allocations: 2.945 MB / 0.5268 GB, free: 0.5859 MB / 330.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