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/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/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.001433/0.001433, allocations: 177.5 kB / 17.46 MB, free: 4.367 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.786/2.786, allocations: 205.4 MB / 223.6 MB, free: 9.02 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.00115/0.001149, allocations: 93.03 kB / 272 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.1291/0.1291, allocations: 12.2 MB / 332.4 MB, free: 11.66 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000458/0.0004581, allocations: 12 kB / 392.7 MB, free: 67.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1179, allocations: 50.28 MB / 443 MB, free: 16.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4393/0.5573, allocations: 81.98 MB / 0.5127 GB, free: 12.41 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003522/0.5577, allocations: 88.73 kB / 0.5128 GB, free: 12.39 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02585/0.5836, allocations: 6.609 MB / 0.5192 GB, free: 9.578 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.5836, allocations: 0 / 0.5192 GB, free: 9.578 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.564e-05/0.5837, allocations: 4 kB / 0.5192 GB, free: 9.574 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.0009808/0.5847, allocations: 0.5337 MB / 0.5197 GB, free: 9 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.629e-05/0.5847, allocations: 16.03 kB / 0.5198 GB, free: 8.984 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.146e-05/0.5848, allocations: 28.53 kB / 0.5198 GB, free: 8.961 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005998/0.5855, allocations: 304.6 kB / 0.5201 GB, free: 8.645 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.135e-05/0.5855, allocations: 4.375 kB / 0.5201 GB, free: 8.641 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.547e-05/0.5856, allocations: 7.75 kB / 0.5201 GB, free: 8.637 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005167/0.5861, allocations: 190.6 kB / 0.5203 GB, free: 8.449 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.5861, allocations: 192 / 0.5203 GB, free: 8.449 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.732e-05/0.5862, allocations: 11.75 kB / 0.5203 GB, free: 8.441 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.5862, allocations: 0 / 0.5203 GB, free: 8.441 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001944/0.5864, allocations: 38.86 kB / 0.5203 GB, free: 8.414 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007774/0.5872, allocations: 418.7 kB / 0.5207 GB, free: 8 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000371/0.5876, allocations: 151.8 kB / 0.5209 GB, free: 7.84 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001569/0.5877, allocations: 61.53 kB / 0.5209 GB, free: 7.781 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.924e-05/0.5878, allocations: 4 kB / 0.5209 GB, free: 7.777 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002373/0.588, allocations: 85.75 kB / 0.521 GB, free: 7.691 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 2.835e-06/0.5881, allocations: 0 / 0.521 GB, free: 7.691 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0005981/0.5887, allocations: 166.3 kB / 0.5212 GB, free: 7.555 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.52e-05/0.5888, allocations: 190.8 kB / 0.5213 GB, free: 7.328 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005433/0.5893, allocations: 351.9 kB / 0.5217 GB, free: 7.035 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.078e-05/0.5894, allocations: 25.7 kB / 0.5217 GB, free: 7.004 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001149/0.5895, allocations: 131.1 kB / 0.5218 GB, free: 6.898 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.966e-05/0.5896, allocations: 15.75 kB / 0.5218 GB, free: 6.887 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.101e-05/0.5896, allocations: 3.75 kB / 0.5219 GB, free: 6.887 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.036e-05/0.5897, allocations: 337.6 kB / 0.5222 GB, free: 6.555 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/0.5898, allocations: 26.48 kB / 0.5222 GB, free: 6.539 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001838/0.59, allocations: 111.2 kB / 0.5223 GB, free: 6.414 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002598/0.5903, allocations: 103.4 kB / 0.5224 GB, free: 6.312 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.5903, allocations: 0 / 0.5224 GB, free: 6.312 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004289/0.5908, allocations: 138 kB / 0.5225 GB, free: 6.195 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.58e-05/0.5908, allocations: 7.984 kB / 0.5225 GB, free: 6.188 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.5908, allocations: 0 / 0.5225 GB, free: 6.188 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.47e-05/0.5909, allocations: 4.188 kB / 0.5225 GB, free: 6.184 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001831/0.5911, allocations: 27.44 kB / 0.5226 GB, free: 6.16 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.397e-05/0.5911, allocations: 7.984 kB / 0.5226 GB, free: 6.152 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001576/0.5913, allocations: 7.906 kB / 0.5226 GB, free: 6.145 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.944e-05/0.5913, allocations: 8.047 kB / 0.5226 GB, free: 6.137 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.0002053/0.5915, allocations: 166.8 kB / 0.5228 GB, free: 5.98 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000154/0.5917, allocations: 79.97 kB / 0.5228 GB, free: 5.902 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004229/0.5921, allocations: 143.5 kB / 0.523 GB, free: 5.785 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/0.5921, allocations: 0 / 0.523 GB, free: 5.785 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.285e-06/0.5922, allocations: 0 / 0.523 GB, free: 5.785 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.5922, allocations: 7.984 kB / 0.523 GB, free: 5.777 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002981/0.5925, allocations: 251.8 kB / 0.5232 GB, free: 5.516 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.5925, allocations: 0 / 0.5232 GB, free: 5.516 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001244/0.5926, allocations: 19.92 kB / 0.5232 GB, free: 5.496 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.452e-06/0.5927, allocations: 4 kB / 0.5232 GB, free: 5.492 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/0.5927, allocations: 0 / 0.5232 GB, free: 5.492 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.732e-06/0.5927, allocations: 7.984 kB / 0.5232 GB, free: 5.484 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.5927, allocations: 4 kB / 0.5232 GB, free: 5.48 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004495/0.5932, allocations: 192.5 kB / 0.5234 GB, free: 5.297 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001915/0.5934, allocations: 123.4 kB / 0.5236 GB, free: 5.164 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.564e-05/0.5935, allocations: 3.5 kB / 0.5236 GB, free: 5.164 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001242/0.5936, allocations: 11.98 kB / 0.5236 GB, free: 5.152 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001056/0.5937, allocations: 11.8 kB / 0.5236 GB, free: 5.145 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.908e-05/0.5937, allocations: 4 kB / 0.5236 GB, free: 5.141 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003856/0.5941, allocations: 243.4 kB / 0.5238 GB, free: 4.945 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.5942, allocations: 0 / 0.5238 GB, free: 4.945 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000669/0.5948, allocations: 55.25 kB / 0.5239 GB, free: 4.898 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.001479/0.5963, allocations: 442.5 kB / 0.5243 GB, free: 4.477 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004706/0.5968, allocations: 104.5 kB / 0.5244 GB, free: 4.395 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.5968, allocations: 0 / 0.5244 GB, free: 4.395 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001357/0.597, allocations: 31.23 kB / 0.5244 GB, free: 4.371 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007712/0.5978, allocations: 85.77 kB / 0.5245 GB, free: 4.301 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001174/0.599, allocations: 469.9 kB / 0.5249 GB, free: 3.844 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003275/0.5993, allocations: 0.743 MB / 0.5257 GB, free: 3.082 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001028/0.5994, allocations: 23.42 kB / 0.5257 GB, free: 3.059 MB / 330.7 MB Notification: Performance of SimCode: time 8.72e-07/0.5995, allocations: 7.938 kB / 0.5257 GB, free: 3.051 MB / 330.7 MB Notification: Performance of Templates: time 0.00769/0.6072, allocations: 3.119 MB / 0.5287 GB, free: 15.95 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