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.001938/0.001938, allocations: 82.67 kB / 20.68 MB, free: 1.023 MB / 14.72 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.002066/0.002066, allocations: 145.6 kB / 23.94 MB, free: 4.156 MB / 14.72 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.461/1.461, allocations: 173.4 MB / 200.4 MB, free: 12.87 MB / 190.1 MB " [Timeout remaining time 178] 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 2.665e-06/2.665e-06, allocations: 0 / 318.9 MB, free: 3.559 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.409e-05/3.676e-05, allocations: 2.281 kB / 318.9 MB, free: 3.555 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.005119/0.005156, allocations: 1.843 MB / 320.8 MB, free: 2.316 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003184/0.00834, allocations: 1.082 MB / 321.8 MB, free: 1.617 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001795/0.00852, allocations: 7.125 kB / 321.9 MB, free: 1.613 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004088/0.008929, allocations: 63.72 kB / 321.9 MB, free: 1.59 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004584/0.009387, allocations: 95.53 kB / 322 MB, free: 1.543 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001195/0.01058, allocations: 258.9 kB / 322.3 MB, free: 1.41 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003791/0.01096, allocations: 173.9 kB / 322.4 MB, free: 1.328 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000133/0.01109, allocations: 28.16 kB / 322.5 MB, free: 1.309 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002135/0.01131, allocations: 98.55 kB / 322.6 MB, free: 1.266 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001768/0.01148, allocations: 74.3 kB / 322.6 MB, free: 1.242 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.993e-05/0.01152, allocations: 8.406 kB / 322.6 MB, free: 1.242 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002458/0.01177, allocations: 68.03 kB / 322.7 MB, free: 1.227 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001077/0.01188, allocations: 51.89 kB / 322.8 MB, free: 1.203 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.874e-05/0.01197, allocations: 41.39 kB / 322.8 MB, free: 1.18 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000519/0.01249, allocations: 244.3 kB / 323 MB, free: 1.082 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.01249, allocations: 1.719 kB / 323 MB, free: 1.082 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.01249, allocations: 0.7969 kB / 323 MB, free: 1.082 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.231e-05/0.01251, allocations: 0 / 323 MB, free: 1.082 MB / 286.1 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.000893/0.0134, allocations: 464.9 kB / 323.5 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/0.01345, allocations: 13.95 kB / 323.5 MB, free: 0.668 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.764e-05/0.01353, allocations: 27.22 kB / 323.5 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005937/0.01413, allocations: 232.7 kB / 323.8 MB, free: 468 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.972e-05/0.01415, allocations: 3.938 kB / 323.8 MB, free: 468 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.749e-05/0.01418, allocations: 10.45 kB / 323.8 MB, free: 464 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000539/0.01472, allocations: 176.2 kB / 323.9 MB, free: 320 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.65e-05/0.01474, allocations: 9.75 kB / 324 MB, free: 312 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.135e-05/0.01476, allocations: 0.6562 kB / 324 MB, free: 312 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.01477, allocations: 1.812 kB / 324 MB, free: 312 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002085/0.01498, allocations: 46.64 kB / 324 MB, free: 292 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006695/0.01565, allocations: 311.1 kB / 324.3 MB, free: 28 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005132/0.01616, allocations: 118 kB / 324.4 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001965/0.01636, allocations: 46.48 kB / 324.5 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.777e-05/0.01639, allocations: 7.5 kB / 324.5 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002948/0.01669, allocations: 78.44 kB / 324.5 MB, free: 15.83 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 2.635e-06/0.01669, allocations: 0 / 324.5 MB, free: 15.83 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0007721/0.01746, allocations: 156 kB / 324.7 MB, free: 15.75 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001497/0.01761, allocations: 136 kB / 324.8 MB, free: 15.59 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006481/0.01826, allocations: 326.9 kB / 325.2 MB, free: 15.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.816e-05/0.0183, allocations: 28.36 kB / 325.2 MB, free: 15.4 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001691/0.01847, allocations: 123.1 kB / 325.3 MB, free: 15.29 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.764e-05/0.01853, allocations: 20 kB / 325.3 MB, free: 15.28 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.214e-05/0.01862, allocations: 33.8 kB / 325.4 MB, free: 15.25 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002561/0.01887, allocations: 330.3 kB / 325.7 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001341/0.01901, allocations: 22.98 kB / 325.7 MB, free: 14.92 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000244/0.01925, allocations: 116.8 kB / 325.8 MB, free: 14.81 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002886/0.01954, allocations: 63.7 kB / 325.9 MB, free: 14.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.01954, allocations: 0 / 325.9 MB, free: 14.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0004197/0.01996, allocations: 107.1 kB / 326 MB, free: 14.71 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.05e-05/0.01998, allocations: 8.844 kB / 326 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.01999, allocations: 5.469 kB / 326 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.207e-05/0.02001, allocations: 0.9219 kB / 326 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001665/0.02018, allocations: 12.7 kB / 326 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.1e-05/0.02019, allocations: 2.031 kB / 326 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001388/0.02033, allocations: 16.11 kB / 326 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.491e-05/0.02035, allocations: 3.031 kB / 326 MB, free: 14.7 MB / 302.1 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 0.0002444/0.02059, allocations: 151.8 kB / 326.2 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001669/0.02076, allocations: 72.73 kB / 326.2 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005001/0.02126, allocations: 135.9 kB / 326.4 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.441e-06/0.02126, allocations: 5.312 kB / 326.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.02127, allocations: 1.062 kB / 326.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.02128, allocations: 1.641 kB / 326.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003366/0.02161, allocations: 177.7 kB / 326.6 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.02162, allocations: 1.062 kB / 326.6 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001181/0.02173, allocations: 12.98 kB / 326.6 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.02174, allocations: 1.125 kB / 326.6 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.877e-05/0.02176, allocations: 2.75 kB / 326.6 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.02176, allocations: 1.891 kB / 326.6 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.02176, allocations: 1.156 kB / 326.6 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005214/0.02229, allocations: 174.8 kB / 326.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001482/0.02243, allocations: 39.47 kB / 326.8 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.178e-05/0.02249, allocations: 3.312 kB / 326.8 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001257/0.02261, allocations: 6.828 kB / 326.8 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.869e-05/0.02269, allocations: 12.09 kB / 326.8 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.492e-05/0.02271, allocations: 4.781 kB / 326.8 MB, free: 14.13 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004332/0.02315, allocations: 244.8 kB / 327.1 MB, free: 14 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.02315, allocations: 0 / 327.1 MB, free: 14 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004811/0.02363, allocations: 32.91 kB / 327.1 MB, free: 14 MB / 302.1 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.002592/0.02622, allocations: 464.2 kB / 327.5 MB, free: 13.79 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003334/0.02655, allocations: 65.69 kB / 327.6 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.02656, allocations: 1.469 kB / 327.6 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001262/0.02668, allocations: 29.62 kB / 327.6 MB, free: 13.76 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005635/0.02725, allocations: 64.39 kB / 327.7 MB, free: 13.74 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008173/0.02806, allocations: 368.7 kB / 328.1 MB, free: 13.5 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001723/0.02824, allocations: 130.9 kB / 328.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001134/0.02835, allocations: 31.66 kB / 328.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.062e-05/0.02842, allocations: 30.2 kB / 328.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of SimCode: time 6.41e-07/0.02842, allocations: 0 / 328.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of Templates: time 0.00871/0.03713, allocations: 2.975 MB / 331.2 MB, free: 12.62 MB / 302.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.458968300372362]