Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.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.00093/0.00093, allocations: 85.17 kB / 21.5 MB, free: 2.992 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.001362/0.001362, allocations: 147.1 kB / 24.89 MB, free: 8.742 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 0.9482/0.9482, allocations: 173.4 MB / 201.5 MB, free: 8.727 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.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 268.5 MB, free: 5.988 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.577e-05/1.736e-05, allocations: 6.25 kB / 268.5 MB, free: 5.98 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.002593/0.002611, allocations: 1.956 MB / 270.5 MB, free: 4.012 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001335/0.003945, allocations: 1.125 MB / 271.6 MB, free: 2.879 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001086/0.004054, allocations: 11.94 kB / 271.6 MB, free: 2.867 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002754/0.004329, allocations: 67.59 kB / 271.7 MB, free: 2.801 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002027/0.004532, allocations: 91.53 kB / 271.8 MB, free: 2.711 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004761/0.005008, allocations: 251.1 kB / 272 MB, free: 2.465 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001874/0.005195, allocations: 175.5 kB / 272.2 MB, free: 2.293 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.555e-05/0.005281, allocations: 26.38 kB / 272.2 MB, free: 2.266 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001079/0.005389, allocations: 99.72 kB / 272.3 MB, free: 2.168 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.601e-05/0.005475, allocations: 63.81 kB / 272.4 MB, free: 2.105 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.324e-05/0.005498, allocations: 8 kB / 272.4 MB, free: 2.098 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000137/0.005635, allocations: 79.81 kB / 272.4 MB, free: 2.02 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.675e-05/0.005692, allocations: 47.78 kB / 272.5 MB, free: 1.973 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.974e-05/0.005732, allocations: 39.84 kB / 272.5 MB, free: 1.934 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002079/0.00594, allocations: 183.3 kB / 272.7 MB, free: 1.754 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.362e-06/0.005941, allocations: 0 / 272.7 MB, free: 1.754 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.61e-07/0.005942, allocations: 4 kB / 272.7 MB, free: 1.75 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.457e-06/0.005945, allocations: 0 / 272.7 MB, free: 1.75 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0003941/0.006339, allocations: 437.2 kB / 273.1 MB, free: 1.293 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.711e-05/0.006366, allocations: 12.03 kB / 273.2 MB, free: 1.281 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.53e-05/0.006402, allocations: 16.92 kB / 273.2 MB, free: 1.266 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001946/0.006596, allocations: 204.7 kB / 273.4 MB, free: 1.039 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.635e-05/0.006612, allocations: 8.375 kB / 273.4 MB, free: 1.031 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.032e-05/0.006623, allocations: 4.375 kB / 273.4 MB, free: 1.027 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001833/0.006806, allocations: 149.5 kB / 273.5 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.006814, allocations: 3.938 kB / 273.5 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.556e-06/0.006823, allocations: 4 kB / 273.5 MB, free: 0.8516 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.94e-06/0.006828, allocations: 0 / 273.5 MB, free: 0.8516 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.65e-05/0.006864, allocations: 26.75 kB / 273.6 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000275/0.007139, allocations: 203.6 kB / 273.8 MB, free: 0.6016 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001083/0.007247, allocations: 141.4 kB / 273.9 MB, free: 444 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.957e-05/0.007277, allocations: 26.58 kB / 273.9 MB, free: 408 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.713e-05/0.007294, allocations: 3.938 kB / 273.9 MB, free: 404 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.806e-05/0.007382, allocations: 78.12 kB / 274 MB, free: 312 kB / 250.7 MB Notification: Performance of pre-optimization done (n=9): time 1.703e-06/0.007384, allocations: 0 / 274 MB, free: 312 kB / 250.7 MB Notification: Performance of matching and sorting (n=9): time 0.0001393/0.007523, allocations: 85.59 kB / 274.1 MB, free: 220 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.617e-05/0.007569, allocations: 111 kB / 274.2 MB, free: 84 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001641/0.007733, allocations: 258.7 kB / 274.4 MB, free: 15.81 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.518e-05/0.007749, allocations: 29.7 kB / 274.5 MB, free: 15.78 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.046e-05/0.007789, allocations: 104.5 kB / 274.6 MB, free: 15.67 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.861e-05/0.007808, allocations: 15.91 kB / 274.6 MB, free: 15.66 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.481e-05/0.007842, allocations: 33.64 kB / 274.6 MB, free: 15.62 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.745e-05/0.00792, allocations: 338.7 kB / 275 MB, free: 15.28 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.461e-05/0.007934, allocations: 6.828 kB / 275 MB, free: 15.27 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.354e-05/0.007968, allocations: 52.28 kB / 275 MB, free: 15.2 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.313e-05/0.008011, allocations: 39.31 kB / 275.1 MB, free: 15.16 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.008013, allocations: 4 kB / 275.1 MB, free: 15.15 MB / 266.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 7.039e-05/0.008083, allocations: 72.44 kB / 275.1 MB, free: 15.07 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.08e-05/0.008094, allocations: 6.969 kB / 275.1 MB, free: 15.07 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.008098, allocations: 0 / 275.1 MB, free: 15.07 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.036e-05/0.008108, allocations: 4 kB / 275.1 MB, free: 15.07 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.213e-05/0.008171, allocations: 15.92 kB / 275.2 MB, free: 15.05 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.715e-06/0.008173, allocations: 0 / 275.2 MB, free: 15.05 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.036e-05/0.008204, allocations: 4 kB / 275.2 MB, free: 15.05 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.042e-06/0.00821, allocations: 4.312 kB / 275.2 MB, free: 15.04 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 6.713e-05/0.008277, allocations: 132.7 kB / 275.3 MB, free: 14.9 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.871e-05/0.008315, allocations: 57.55 kB / 275.3 MB, free: 14.84 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.616e-05/0.008412, allocations: 75.59 kB / 275.4 MB, free: 14.76 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.008414, allocations: 0 / 275.4 MB, free: 14.76 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/0.008415, allocations: 0 / 275.4 MB, free: 14.76 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.008419, allocations: 4 kB / 275.4 MB, free: 14.75 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.988e-05/0.008509, allocations: 113.7 kB / 275.5 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.008511, allocations: 3.984 kB / 275.5 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.599e-05/0.008547, allocations: 15.94 kB / 275.6 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.008549, allocations: 4.062 kB / 275.6 MB, free: 14.6 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.386e-06/0.008557, allocations: 11.94 kB / 275.6 MB, free: 14.59 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.008558, allocations: 3.984 kB / 275.6 MB, free: 14.59 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.008559, allocations: 80 / 275.6 MB, free: 14.59 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.606e-05/0.008635, allocations: 104.5 kB / 275.7 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.751e-05/0.008673, allocations: 27.89 kB / 275.7 MB, free: 14.43 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.818e-05/0.008691, allocations: 7.938 kB / 275.7 MB, free: 14.42 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.674e-05/0.008718, allocations: 4 kB / 275.7 MB, free: 14.42 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.071e-05/0.008749, allocations: 7.984 kB / 275.7 MB, free: 14.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.144e-05/0.00876, allocations: 11.92 kB / 275.7 MB, free: 14.4 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.041e-05/0.00883, allocations: 97.61 kB / 275.8 MB, free: 14.3 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.00883, allocations: 0 / 275.8 MB, free: 14.3 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001352/0.008966, allocations: 39.88 kB / 275.9 MB, free: 14.26 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,table.y,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.0009977/0.009963, allocations: 0.5117 MB / 276.4 MB, free: 13.98 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.672e-05/0.01005, allocations: 40.78 kB / 276.4 MB, free: 13.93 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.01005, allocations: 0 / 276.4 MB, free: 13.93 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.43e-05/0.01009, allocations: 20.91 kB / 276.4 MB, free: 13.91 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001854/0.01027, allocations: 76.84 kB / 276.5 MB, free: 13.84 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003382/0.01061, allocations: 324.3 kB / 276.8 MB, free: 13.49 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.447e-05/0.01066, allocations: 79.97 kB / 276.9 MB, free: 13.39 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.602e-05/0.0107, allocations: 21.62 kB / 276.9 MB, free: 13.36 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.608e-05/0.01079, allocations: 87.53 kB / 277 MB, free: 13.28 MB / 266.7 MB Notification: Performance of SimCode: time 5.61e-07/0.01079, allocations: 4 kB / 277 MB, free: 13.27 MB / 266.7 MB Notification: Performance of Templates: time 0.00455/0.01534, allocations: 3.174 MB / 280.2 MB, free: 10.16 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/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.573505738284439]