Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00103/0.00103, allocations: 80.31 kB / 22.21 MB, free: 2.285 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001252/0.001252, allocations: 170.2 kB / 25.61 MB, free: 8.551 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9667/0.9667, allocations: 177.1 MB / 206.1 MB, free: 4.504 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5021,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5021,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 274.2 MB, free: 4.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.539e-05/1.695e-05, allocations: 2.312 kB / 274.2 MB, free: 4.426 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.002525/0.002542, allocations: 1.934 MB / 276.1 MB, free: 2.492 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001577/0.004119, allocations: 1.163 MB / 277.3 MB, free: 1.324 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001256/0.004245, allocations: 3.938 kB / 277.3 MB, free: 1.32 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005447/0.00479, allocations: 164.7 kB / 277.5 MB, free: 1.16 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003086/0.005098, allocations: 160 kB / 277.6 MB, free: 1.004 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003496/0.005448, allocations: 173.7 kB / 277.8 MB, free: 0.8359 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002133/0.005661, allocations: 195.4 kB / 278 MB, free: 0.6445 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.919e-05/0.00575, allocations: 17.81 kB / 278 MB, free: 0.625 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001146/0.005865, allocations: 103.7 kB / 278.1 MB, free: 0.5234 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.609e-05/0.005961, allocations: 65.73 kB / 278.2 MB, free: 472 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.97e-05/0.005981, allocations: 12 kB / 278.2 MB, free: 460 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001088/0.00609, allocations: 63.89 kB / 278.2 MB, free: 396 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.615e-05/0.006146, allocations: 39.84 kB / 278.3 MB, free: 356 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.51e-05/0.006191, allocations: 39.84 kB / 278.3 MB, free: 316 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002032/0.006394, allocations: 163.8 kB / 278.5 MB, free: 152 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.814e-06/0.006396, allocations: 0.6562 kB / 278.5 MB, free: 152 kB / 250.7 MB Notification: Performance of FrontEnd: time 3.41e-07/0.006396, allocations: 0 / 278.5 MB, free: 152 kB / 250.7 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.0064, allocations: 4 kB / 278.5 MB, free: 148 kB / 250.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.0004975/0.006898, allocations: 0.544 MB / 279 MB, free: 15.55 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.069e-05/0.006928, allocations: 8.031 kB / 279 MB, free: 15.55 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.364e-05/0.006972, allocations: 24.8 kB / 279 MB, free: 15.52 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002036/0.007176, allocations: 224.4 kB / 279.3 MB, free: 15.28 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.826e-05/0.007194, allocations: 4.375 kB / 279.3 MB, free: 15.27 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.273e-05/0.007207, allocations: 12.31 kB / 279.3 MB, free: 15.26 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001887/0.007395, allocations: 136.6 kB / 279.4 MB, free: 15.1 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.007406, allocations: 3.938 kB / 279.4 MB, free: 15.1 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.468e-06/0.007415, allocations: 4 kB / 279.4 MB, free: 15.09 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.211e-06/0.007421, allocations: 0 / 279.4 MB, free: 15.09 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.495e-05/0.007456, allocations: 15.98 kB / 279.4 MB, free: 15.08 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003184/0.007775, allocations: 315.7 kB / 279.7 MB, free: 14.73 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001217/0.007896, allocations: 113.3 kB / 279.9 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.554e-05/0.007932, allocations: 42.98 kB / 279.9 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.442e-05/0.007946, allocations: 3.984 kB / 279.9 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.593e-05/0.008042, allocations: 72.98 kB / 280 MB, free: 14.44 MB / 266.7 MB Notification: Performance of pre-optimization done (n=9): time 9.02e-07/0.008043, allocations: 0 / 280 MB, free: 14.44 MB / 266.7 MB Notification: Performance of matching and sorting (n=9): time 0.0001861/0.008229, allocations: 105.7 kB / 280.1 MB, free: 14.33 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.504e-05/0.008284, allocations: 118.7 kB / 280.2 MB, free: 14.19 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001642/0.008449, allocations: 288.4 kB / 280.5 MB, free: 13.89 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.29e-05/0.008461, allocations: 33.64 kB / 280.5 MB, free: 13.86 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.511e-05/0.008537, allocations: 174.8 kB / 280.7 MB, free: 13.68 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.072e-05/0.008557, allocations: 15.89 kB / 280.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.428e-05/0.008592, allocations: 35.31 kB / 280.7 MB, free: 13.62 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.008717, allocations: 0.5001 MB / 281.2 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.375e-05/0.008731, allocations: 8 kB / 281.2 MB, free: 13.1 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.092e-05/0.008771, allocations: 68.73 kB / 281.3 MB, free: 13.02 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.224e-05/0.008814, allocations: 35.36 kB / 281.3 MB, free: 12.97 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.008815, allocations: 0 / 281.3 MB, free: 12.97 MB / 266.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 8.019e-05/0.008895, allocations: 81.5 kB / 281.4 MB, free: 12.89 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.122e-05/0.008907, allocations: 8 kB / 281.4 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/0.00891, allocations: 0 / 281.4 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.597e-06/0.008919, allocations: 0 / 281.4 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.99e-05/0.008969, allocations: 11.98 kB / 281.4 MB, free: 12.87 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.639e-06/0.008973, allocations: 7.938 kB / 281.4 MB, free: 12.86 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.881e-05/0.009002, allocations: 4 kB / 281.4 MB, free: 12.86 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.248e-06/0.009006, allocations: 4 kB / 281.5 MB, free: 12.85 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.542e-05/0.009082, allocations: 160.6 kB / 281.6 MB, free: 12.68 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.921e-05/0.009131, allocations: 73.47 kB / 281.7 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001088/0.00924, allocations: 91.44 kB / 281.8 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.009242, allocations: 0 / 281.8 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/0.009244, allocations: 4 kB / 281.8 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.009248, allocations: 0 / 281.8 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001037/0.009352, allocations: 141.1 kB / 281.9 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.009354, allocations: 3.984 kB / 281.9 MB, free: 12.33 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.489e-05/0.009369, allocations: 4 kB / 281.9 MB, free: 12.33 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.009372, allocations: 7.938 kB / 281.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.166e-05/0.009383, allocations: 8.125 kB / 281.9 MB, free: 12.31 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-06/0.009387, allocations: 12 kB / 281.9 MB, free: 12.3 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.009388, allocations: 0 / 281.9 MB, free: 12.3 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001045/0.009492, allocations: 143.6 kB / 282.1 MB, free: 12.13 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.665e-05/0.009529, allocations: 23.89 kB / 282.1 MB, free: 12.11 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.014e-05/0.009549, allocations: 7.938 kB / 282.1 MB, free: 12.1 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.151e-05/0.009581, allocations: 7.984 kB / 282.1 MB, free: 12.09 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.521e-05/0.009606, allocations: 4 kB / 282.1 MB, free: 12.09 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.747e-06/0.009614, allocations: 4 kB / 282.1 MB, free: 12.08 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.576e-05/0.0097, allocations: 201 kB / 282.3 MB, free: 11.89 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0097, allocations: 0 / 282.3 MB, free: 11.89 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001616/0.009862, allocations: 35.89 kB / 282.4 MB, free: 11.85 MB / 266.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,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample1.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008273/0.01069, allocations: 397.1 kB / 282.8 MB, free: 11.6 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000108/0.0108, allocations: 47.59 kB / 282.8 MB, free: 11.55 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.0108, allocations: 0 / 282.8 MB, free: 11.55 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.259e-05/0.01083, allocations: 23.67 kB / 282.8 MB, free: 11.52 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002407/0.01107, allocations: 64.2 kB / 282.9 MB, free: 11.46 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000368/0.01144, allocations: 306 kB / 283.2 MB, free: 11.13 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.672e-05/0.01149, allocations: 83.69 kB / 283.3 MB, free: 11.03 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.674e-05/0.01153, allocations: 21.73 kB / 283.3 MB, free: 11 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.836e-05/0.01162, allocations: 102.2 kB / 283.4 MB, free: 10.9 MB / 266.7 MB Notification: Performance of SimCode: time 5.81e-07/0.01162, allocations: 0 / 283.4 MB, free: 10.9 MB / 266.7 MB Notification: Performance of Templates: time 0.004898/0.01652, allocations: 2.901 MB / 286.3 MB, free: 8.059 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8119486598297954]