Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001045/0.001045, allocations: 78.97 kB / 21.42 MB, free: 3.078 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001407/0.001407, allocations: 148.2 kB / 24.81 MB, free: 9.27 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.04/1.04, allocations: 173.3 MB / 201.4 MB, free: 9.23 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 268.4 MB, free: 6.223 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.23e-05/1.394e-05, allocations: 2.312 kB / 268.4 MB, free: 6.219 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.002223/0.002237, allocations: 1.94 MB / 270.3 MB, free: 4.262 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001242/0.003478, allocations: 1.125 MB / 271.5 MB, free: 3.129 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001247/0.003603, allocations: 11.94 kB / 271.5 MB, free: 3.117 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002795/0.003882, allocations: 59.66 kB / 271.5 MB, free: 3.059 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002566/0.004139, allocations: 103.5 kB / 271.6 MB, free: 2.957 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005452/0.004684, allocations: 262.9 kB / 271.9 MB, free: 2.699 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001986/0.004883, allocations: 187.5 kB / 272.1 MB, free: 2.516 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.403e-05/0.004967, allocations: 25.78 kB / 272.1 MB, free: 2.488 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000115/0.005082, allocations: 107.7 kB / 272.2 MB, free: 2.383 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.775e-05/0.005169, allocations: 71.8 kB / 272.3 MB, free: 2.312 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.888e-05/0.005188, allocations: 8 kB / 272.3 MB, free: 2.305 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001249/0.005313, allocations: 71.88 kB / 272.4 MB, free: 2.234 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.156e-05/0.005375, allocations: 55.77 kB / 272.4 MB, free: 2.18 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.276e-05/0.005417, allocations: 39.86 kB / 272.4 MB, free: 2.141 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002129/0.00563, allocations: 195.2 kB / 272.6 MB, free: 1.949 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.254e-06/0.005633, allocations: 3.938 kB / 272.6 MB, free: 1.945 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.005633, allocations: 4 kB / 272.6 MB, free: 1.941 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.437e-06/0.005637, allocations: 0 / 272.6 MB, free: 1.941 MB / 250.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.0004588/0.006096, allocations: 0.571 MB / 273.2 MB, free: 1.328 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.161e-05/0.006127, allocations: 8.031 kB / 273.2 MB, free: 1.32 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.24e-05/0.00617, allocations: 28.8 kB / 273.3 MB, free: 1.293 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001928/0.006362, allocations: 231.5 kB / 273.5 MB, free: 1.039 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.555e-05/0.006378, allocations: 4.375 kB / 273.5 MB, free: 1.035 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.158e-05/0.00639, allocations: 8.375 kB / 273.5 MB, free: 1.027 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002028/0.006592, allocations: 168.9 kB / 273.7 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.128e-06/0.006602, allocations: 3.938 kB / 273.7 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.697e-06/0.00661, allocations: 4 kB / 273.7 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.658e-06/0.006615, allocations: 0 / 273.7 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.817e-05/0.006653, allocations: 23.91 kB / 273.7 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003067/0.00696, allocations: 343.3 kB / 274 MB, free: 432 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001249/0.007085, allocations: 144.5 kB / 274.2 MB, free: 236 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.249e-05/0.007127, allocations: 58.66 kB / 274.2 MB, free: 160 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.694e-05/0.007144, allocations: 4 kB / 274.2 MB, free: 156 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.872e-05/0.007223, allocations: 72.97 kB / 274.3 MB, free: 68 kB / 250.7 MB Notification: Performance of pre-optimization done (n=11): time 1.162e-06/0.007224, allocations: 4 kB / 274.3 MB, free: 64 kB / 250.7 MB Notification: Performance of matching and sorting (n=11): time 0.0001936/0.007418, allocations: 129.6 kB / 274.4 MB, free: 15.93 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.03e-05/0.007468, allocations: 136.5 kB / 274.6 MB, free: 15.76 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001716/0.007639, allocations: 324.1 kB / 274.9 MB, free: 15.43 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.283e-05/0.007652, allocations: 25.7 kB / 274.9 MB, free: 15.39 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.718e-05/0.007729, allocations: 195 kB / 275.1 MB, free: 15.2 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.342e-05/0.007753, allocations: 11.91 kB / 275.1 MB, free: 15.18 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.605e-05/0.007789, allocations: 35.34 kB / 275.1 MB, free: 15.14 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.007905, allocations: 0.5079 MB / 275.6 MB, free: 14.62 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.647e-05/0.007921, allocations: 12.36 kB / 275.7 MB, free: 14.61 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.702e-05/0.007958, allocations: 64.75 kB / 275.7 MB, free: 14.53 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.961e-05/0.007998, allocations: 39.61 kB / 275.8 MB, free: 14.48 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.007999, allocations: 0 / 275.8 MB, free: 14.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 8.015e-05/0.008079, allocations: 93.23 kB / 275.9 MB, free: 14.39 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.737e-06/0.008088, allocations: 4 kB / 275.9 MB, free: 14.38 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.008092, allocations: 0 / 275.9 MB, free: 14.38 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.446e-06/0.0081, allocations: 3.984 kB / 275.9 MB, free: 14.38 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.429e-05/0.008155, allocations: 12 kB / 275.9 MB, free: 14.37 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.755e-06/0.008157, allocations: 4.062 kB / 275.9 MB, free: 14.36 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.41e-05/0.008191, allocations: 7.938 kB / 275.9 MB, free: 14.36 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.188e-06/0.008196, allocations: 0 / 275.9 MB, free: 14.36 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,table.y) * 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.311e-05/0.008269, allocations: 172.4 kB / 276.1 MB, free: 14.18 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.62e-05/0.008325, allocations: 81.44 kB / 276.1 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001104/0.008435, allocations: 95.44 kB / 276.2 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.008439, allocations: 4 kB / 276.2 MB, free: 13.98 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-06/0.00844, allocations: 0 / 276.2 MB, free: 13.98 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.008444, allocations: 96 / 276.2 MB, free: 13.98 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001049/0.008549, allocations: 153.2 kB / 276.4 MB, free: 13.81 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.008551, allocations: 4 kB / 276.4 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.998e-05/0.008591, allocations: 19.92 kB / 276.4 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.008594, allocations: 3.938 kB / 276.4 MB, free: 13.78 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.945e-06/0.008601, allocations: 8 kB / 276.4 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.01e-07/0.008602, allocations: 0 / 276.4 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.008604, allocations: 4 kB / 276.4 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001184/0.008723, allocations: 163.5 kB / 276.6 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.483e-05/0.008768, allocations: 35.78 kB / 276.6 MB, free: 13.54 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.71e-05/0.008785, allocations: 8.047 kB / 276.6 MB, free: 13.53 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.48e-05/0.00882, allocations: 12 kB / 276.6 MB, free: 13.52 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.004e-05/0.00885, allocations: 7.984 kB / 276.6 MB, free: 13.51 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.173e-05/0.008861, allocations: 11.94 kB / 276.7 MB, free: 13.5 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001002/0.008962, allocations: 213.1 kB / 276.9 MB, free: 13.29 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.008962, allocations: 0 / 276.9 MB, free: 13.29 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001578/0.009119, allocations: 31.94 kB / 276.9 MB, free: 13.26 MB / 266.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,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,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 (12): * Single equations (assignments): 10 * 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.0007257/0.009845, allocations: 407.8 kB / 277.3 MB, free: 13 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 9.443e-05/0.00994, allocations: 59.58 kB / 277.3 MB, free: 12.94 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.009941, allocations: 0 / 277.3 MB, free: 12.94 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.395e-05/0.009975, allocations: 31.61 kB / 277.4 MB, free: 12.91 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002429/0.01022, allocations: 70.41 kB / 277.4 MB, free: 12.84 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003684/0.01059, allocations: 356.9 kB / 277.8 MB, free: 12.45 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.305e-05/0.01064, allocations: 87.97 kB / 277.9 MB, free: 12.34 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.014e-05/0.01069, allocations: 25.61 kB / 277.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.689e-05/0.01079, allocations: 110.2 kB / 278 MB, free: 12.21 MB / 266.7 MB Notification: Performance of SimCode: time 7.62e-07/0.01079, allocations: 288 / 278 MB, free: 12.21 MB / 266.7 MB Notification: Performance of Templates: time 0.00462/0.01541, allocations: 3.434 MB / 281.4 MB, free: 8.844 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.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: 3.051891892682761]