Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.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.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|backSample1.y|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|backSample1.y|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002002/0.002002, allocations: 187 kB / 16.44 MB, free: 5.672 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.94/1.94, allocations: 205.4 MB / 222.6 MB, free: 9.117 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.001099/0.001099, allocations: 86.88 kB / 270.9 MB, free: 8.371 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.1013/0.1013, allocations: 12.6 MB / 331.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007294/0.0007296, allocations: 12 kB / 392 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08647/0.08724, allocations: 50.37 MB / 442.3 MB, free: 16.49 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4269/0.5142, allocations: 81.97 MB / 0.512 GB, free: 12.16 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002918/0.5146, allocations: 83.05 kB / 0.5121 GB, free: 12.14 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02484/0.5394, allocations: 6.064 MB / 0.518 GB, free: 9.465 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.5395, allocations: 0 / 0.518 GB, free: 9.465 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.134e-05/0.5395, allocations: 8 kB / 0.518 GB, free: 9.457 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007971/0.5403, allocations: 0.5446 MB / 0.5186 GB, free: 8.875 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.5404, allocations: 8.031 kB / 0.5186 GB, free: 8.867 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.859e-05/0.5405, allocations: 27.62 kB / 0.5186 GB, free: 8.84 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005145/0.541, allocations: 302.8 kB / 0.5189 GB, free: 8.531 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.491e-05/0.541, allocations: 3.953 kB / 0.5189 GB, free: 8.527 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.713e-05/0.5411, allocations: 15.81 kB / 0.5189 GB, free: 8.516 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004204/0.5415, allocations: 176.4 kB / 0.5191 GB, free: 8.34 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.5415, allocations: 0 / 0.5191 GB, free: 8.34 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.004e-05/0.5416, allocations: 0 / 0.5191 GB, free: 8.34 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.5416, allocations: 0 / 0.5191 GB, free: 8.34 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001769/0.5418, allocations: 48.41 kB / 0.5191 GB, free: 8.305 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006565/0.5424, allocations: 416.3 kB / 0.5195 GB, free: 7.895 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003414/0.5428, allocations: 142.3 kB / 0.5196 GB, free: 7.742 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.596e-05/0.5428, allocations: 4 kB / 0.5197 GB, free: 7.738 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000208/0.5431, allocations: 78.62 kB / 0.5197 GB, free: 7.66 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 2.705e-06/0.5431, allocations: 11.94 kB / 0.5197 GB, free: 7.648 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0006039/0.5437, allocations: 176.2 kB / 0.5199 GB, free: 7.504 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.793e-05/0.5438, allocations: 187.7 kB / 0.5201 GB, free: 7.281 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004494/0.5442, allocations: 301.1 kB / 0.5204 GB, free: 7.031 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.711e-05/0.5443, allocations: 33.69 kB / 0.5204 GB, free: 6.992 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.303e-05/0.5444, allocations: 186.4 kB / 0.5206 GB, free: 6.832 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.243e-05/0.5444, allocations: 19.19 kB / 0.5206 GB, free: 6.816 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.468e-06/0.5444, allocations: 0 / 0.5206 GB, free: 6.816 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.721e-05/0.5445, allocations: 325.5 kB / 0.5209 GB, free: 6.492 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/0.5446, allocations: 27.55 kB / 0.5209 GB, free: 6.473 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001765/0.5448, allocations: 106.4 kB / 0.521 GB, free: 6.352 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001351/0.545, allocations: 38.55 kB / 0.5211 GB, free: 6.328 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.545, allocations: 0 / 0.5211 GB, free: 6.328 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003517/0.5453, allocations: 138.1 kB / 0.5212 GB, free: 6.211 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.5454, allocations: 4 kB / 0.5212 GB, free: 6.207 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.5454, allocations: 4 kB / 0.5212 GB, free: 6.203 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.936e-05/0.5454, allocations: 0 / 0.5212 GB, free: 6.203 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001919/0.5456, allocations: 23.98 kB / 0.5212 GB, free: 6.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.637e-06/0.5457, allocations: 0 / 0.5212 GB, free: 6.18 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001631/0.5458, allocations: 15.69 kB / 0.5213 GB, free: 6.168 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.524e-05/0.5459, allocations: 4 kB / 0.5213 GB, free: 6.164 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,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 (13): * Single equations (assignments): 13 * 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.0001973/0.5461, allocations: 168.2 kB / 0.5214 GB, free: 6.004 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001371/0.5462, allocations: 77.92 kB / 0.5215 GB, free: 5.93 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000375/0.5466, allocations: 121.1 kB / 0.5216 GB, free: 5.832 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.5466, allocations: 0 / 0.5216 GB, free: 5.832 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.5466, allocations: 4 kB / 0.5216 GB, free: 5.828 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.5466, allocations: 8.016 kB / 0.5216 GB, free: 5.82 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002531/0.5469, allocations: 259.8 kB / 0.5219 GB, free: 5.555 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.5469, allocations: 8.078 kB / 0.5219 GB, free: 5.547 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000137/0.5471, allocations: 19.94 kB / 0.5219 GB, free: 5.527 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.091e-06/0.5471, allocations: 0 / 0.5219 GB, free: 5.527 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.754e-05/0.5471, allocations: 7.984 kB / 0.5219 GB, free: 5.52 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.327e-06/0.5471, allocations: 0 / 0.5219 GB, free: 5.52 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.5471, allocations: 0 / 0.5219 GB, free: 5.52 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004397/0.5476, allocations: 231.1 kB / 0.5221 GB, free: 5.281 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001418/0.5477, allocations: 115.8 kB / 0.5222 GB, free: 5.156 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.17e-05/0.5478, allocations: 7.312 kB / 0.5222 GB, free: 5.152 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001232/0.5479, allocations: 7.984 kB / 0.5222 GB, free: 5.145 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.285e-05/0.548, allocations: 11.48 kB / 0.5223 GB, free: 5.137 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.691e-05/0.548, allocations: 11.95 kB / 0.5223 GB, free: 5.125 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003419/0.5484, allocations: 246.4 kB / 0.5225 GB, free: 4.93 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5484, allocations: 3.938 kB / 0.5225 GB, free: 4.926 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004195/0.5488, allocations: 54.28 kB / 0.5226 GB, free: 4.879 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,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 (12): * Single equations (assignments): 10 * 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.001141/0.55, allocations: 436.5 kB / 0.523 GB, free: 4.461 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004466/0.5505, allocations: 101.5 kB / 0.5231 GB, free: 4.383 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.5505, allocations: 4.062 kB / 0.5231 GB, free: 4.379 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001277/0.5506, allocations: 35.23 kB / 0.5231 GB, free: 4.355 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005737/0.5512, allocations: 76.94 kB / 0.5232 GB, free: 4.293 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009236/0.5521, allocations: 479.1 kB / 0.5236 GB, free: 3.828 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002188/0.5524, allocations: 0.7517 MB / 0.5244 GB, free: 3.055 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.425e-05/0.5525, allocations: 23.44 kB / 0.5244 GB, free: 3.031 MB / 330.7 MB Notification: Performance of SimCode: time 1.102e-06/0.5525, allocations: 0 / 0.5244 GB, free: 3.031 MB / 330.7 MB Notification: Performance of Templates: time 0.007233/0.5597, allocations: 3.132 MB / 0.5275 GB, free: 15.93 MB / 346.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches