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.0009854/0.0009854, allocations: 83.89 kB / 21.19 MB, free: 3.379 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.001031/0.001031, allocations: 145.1 kB / 24.54 MB, free: 24 kB / 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.9776/0.9776, allocations: 173.4 MB / 201.1 MB, free: 9.293 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.563e-06/1.563e-06, allocations: 0 / 268 MB, free: 6.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.251e-05/2.408e-05, allocations: 6.25 kB / 268 MB, free: 6.402 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.002565/0.002589, allocations: 1.913 MB / 269.9 MB, free: 4.473 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001582/0.004171, allocations: 1.118 MB / 271 MB, free: 3.348 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001111/0.004282, allocations: 3.938 kB / 271 MB, free: 3.344 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003227/0.004605, allocations: 71.61 kB / 271.1 MB, free: 3.273 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002559/0.004861, allocations: 99.52 kB / 271.2 MB, free: 3.176 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005258/0.005387, allocations: 255 kB / 271.4 MB, free: 2.926 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002061/0.005593, allocations: 175.5 kB / 271.6 MB, free: 2.754 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000106/0.005699, allocations: 25.73 kB / 271.6 MB, free: 2.727 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001196/0.005818, allocations: 103.7 kB / 271.7 MB, free: 2.625 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001053/0.005924, allocations: 71.84 kB / 271.8 MB, free: 2.555 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.402e-05/0.005948, allocations: 8 kB / 271.8 MB, free: 2.547 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001433/0.006091, allocations: 67.88 kB / 271.9 MB, free: 2.48 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.593e-05/0.006167, allocations: 51.84 kB / 271.9 MB, free: 2.43 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003372/0.006504, allocations: 39.84 kB / 272 MB, free: 2.391 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002651/0.006769, allocations: 191.2 kB / 272.2 MB, free: 2.203 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.006772, allocations: 0 / 272.2 MB, free: 2.203 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.51e-07/0.006773, allocations: 0 / 272.2 MB, free: 2.203 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.408e-06/0.006777, allocations: 0 / 272.2 MB, free: 2.203 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.0005958/0.007373, allocations: 0.5633 MB / 272.7 MB, free: 1.598 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.007418, allocations: 12.03 kB / 272.7 MB, free: 1.586 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.961e-05/0.007488, allocations: 28.75 kB / 272.8 MB, free: 1.559 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003173/0.007805, allocations: 219.7 kB / 273 MB, free: 1.316 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.42e-05/0.007829, allocations: 384 / 273 MB, free: 1.316 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.241e-05/0.007852, allocations: 12.38 kB / 273 MB, free: 1.305 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003238/0.008176, allocations: 190.7 kB / 273.2 MB, free: 1.078 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.469e-05/0.00819, allocations: 7.875 kB / 273.2 MB, free: 1.07 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.356e-05/0.008204, allocations: 8 kB / 273.2 MB, free: 1.062 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.415e-06/0.008212, allocations: 0 / 273.2 MB, free: 1.062 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.228e-05/0.008265, allocations: 15.98 kB / 273.2 MB, free: 1.047 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004052/0.00867, allocations: 371 kB / 273.6 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000149/0.008819, allocations: 121.3 kB / 273.7 MB, free: 496 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.736e-05/0.008866, allocations: 46.98 kB / 273.7 MB, free: 436 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.276e-05/0.008889, allocations: 4 kB / 273.7 MB, free: 432 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001111/0.009, allocations: 72.98 kB / 273.8 MB, free: 344 kB / 250.7 MB Notification: Performance of pre-optimization done (n=9): time 1.643e-06/0.009002, allocations: 0 / 273.8 MB, free: 344 kB / 250.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002457/0.009247, allocations: 121.6 kB / 273.9 MB, free: 216 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.783e-05/0.009325, allocations: 136.5 kB / 274.1 MB, free: 48 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002471/0.009572, allocations: 316.3 kB / 274.4 MB, free: 15.72 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.832e-05/0.009591, allocations: 33.95 kB / 274.4 MB, free: 15.68 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.823e-05/0.009679, allocations: 182.8 kB / 274.6 MB, free: 15.5 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.231e-05/0.009701, allocations: 19.83 kB / 274.6 MB, free: 15.48 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.212e-05/0.009743, allocations: 31.38 kB / 274.6 MB, free: 15.44 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.009876, allocations: 0.504 MB / 275.1 MB, free: 14.92 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.425e-05/0.00991, allocations: 12 kB / 275.1 MB, free: 14.91 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.811e-05/0.009968, allocations: 102.2 kB / 275.2 MB, free: 14.78 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.891e-05/0.01003, allocations: 47.3 kB / 275.3 MB, free: 14.73 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.01003, allocations: 0 / 275.3 MB, free: 14.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001086/0.01014, allocations: 89.56 kB / 275.4 MB, free: 14.63 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.01015, allocations: 8 kB / 275.4 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.01016, allocations: 0 / 275.4 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/0.01017, allocations: 0 / 275.4 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.369e-05/0.01026, allocations: 15.98 kB / 275.4 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.01026, allocations: 0 / 275.4 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.85e-05/0.0103, allocations: 7.953 kB / 275.4 MB, free: 14.6 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.55e-06/0.01031, allocations: 3.938 kB / 275.4 MB, free: 14.6 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 8.671e-05/0.0104, allocations: 170.1 kB / 275.6 MB, free: 14.42 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.966e-05/0.01046, allocations: 73.55 kB / 275.6 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001433/0.0106, allocations: 95.44 kB / 275.7 MB, free: 14.24 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.0106, allocations: 4 kB / 275.7 MB, free: 14.24 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.01061, allocations: 0 / 275.7 MB, free: 14.24 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.01061, allocations: 0 / 275.7 MB, free: 14.24 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001369/0.01075, allocations: 200.5 kB / 275.9 MB, free: 14.01 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.01075, allocations: 0 / 275.9 MB, free: 14.01 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.066e-05/0.01079, allocations: 15.94 kB / 276 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.01079, allocations: 0 / 276 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.758e-06/0.0108, allocations: 3.984 kB / 276 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.0108, allocations: 8.094 kB / 276 MB, free: 13.98 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.01081, allocations: 7.938 kB / 276 MB, free: 13.97 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000143/0.01095, allocations: 175.5 kB / 276.1 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.913e-05/0.011, allocations: 35.84 kB / 276.2 MB, free: 13.73 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.249e-05/0.01102, allocations: 7.984 kB / 276.2 MB, free: 13.73 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.223e-05/0.01105, allocations: 4 kB / 276.2 MB, free: 13.72 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.89e-05/0.0111, allocations: 11.98 kB / 276.2 MB, free: 13.71 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.302e-05/0.01111, allocations: 4 kB / 276.2 MB, free: 13.71 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001249/0.01124, allocations: 221.1 kB / 276.4 MB, free: 13.49 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01124, allocations: 0 / 276.4 MB, free: 13.49 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001675/0.01141, allocations: 27.94 kB / 276.5 MB, free: 13.46 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.0008461/0.01225, allocations: 397.2 kB / 276.8 MB, free: 13.21 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001369/0.01239, allocations: 59.59 kB / 276.9 MB, free: 13.15 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.01239, allocations: 0 / 276.9 MB, free: 13.15 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.246e-05/0.01243, allocations: 31.61 kB / 276.9 MB, free: 13.12 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002764/0.01271, allocations: 61.27 kB / 277 MB, free: 13.05 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004176/0.01313, allocations: 330 kB / 277.3 MB, free: 12.7 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.487e-05/0.01318, allocations: 79.97 kB / 277.4 MB, free: 12.6 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.001e-05/0.01323, allocations: 25.73 kB / 277.4 MB, free: 12.57 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.425e-05/0.01328, allocations: 24.48 kB / 277.4 MB, free: 12.55 MB / 266.7 MB Notification: Performance of SimCode: time 5.11e-07/0.01328, allocations: 4 kB / 277.4 MB, free: 12.55 MB / 266.7 MB Notification: Performance of Templates: time 0.005943/0.01922, allocations: 3.014 MB / 280.5 MB, free: 9.59 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 -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: 3.1060446351766586]