Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.00145/0.00145, allocations: 84 kB / 20.68 MB, free: 1.027 MB / 14.72 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.001616/0.001616, allocations: 163 kB / 23.95 MB, free: 4.156 MB / 14.72 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 1.485/1.485, allocations: 177.1 MB / 204.3 MB, free: 9.176 MB / 190.1 MB " [Timeout remaining time 178] 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.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.545e-06/2.545e-06, allocations: 1.125 kB / 325.1 MB, free: 0.543 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.515e-05/2.769e-05, allocations: 6.219 kB / 325.1 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.005424/0.005452, allocations: 1.884 MB / 327 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004698/0.01015, allocations: 1.223 MB / 328.2 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002596/0.01041, allocations: 6.438 kB / 328.2 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004862/0.0109, allocations: 68.11 kB / 328.2 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007276/0.01162, allocations: 135.7 kB / 328.4 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001376/0.013, allocations: 230.7 kB / 328.6 MB, free: 14.26 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005582/0.01356, allocations: 186.7 kB / 328.8 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001885/0.01375, allocations: 17 kB / 328.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003575/0.0141, allocations: 106.5 kB / 328.9 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000257/0.01436, allocations: 71.66 kB / 329 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.676e-05/0.01441, allocations: 9.875 kB / 329 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003089/0.01472, allocations: 69.03 kB / 329.1 MB, free: 14.08 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000147/0.01486, allocations: 58.19 kB / 329.1 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000135/0.015, allocations: 46.86 kB / 329.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000721/0.01572, allocations: 241.6 kB / 329.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.01573, allocations: 0.6562 kB / 329.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.01573, allocations: 1.438 kB / 329.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.142e-05/0.01574, allocations: 0 / 329.4 MB, free: 13.93 MB / 302.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.001329/0.01707, allocations: 475.1 kB / 329.9 MB, free: 13.51 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.01712, allocations: 9.531 kB / 329.9 MB, free: 13.51 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001324/0.01725, allocations: 23.45 kB / 329.9 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007708/0.01802, allocations: 234.2 kB / 330.1 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.835e-05/0.01805, allocations: 4.422 kB / 330.1 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.418e-05/0.01808, allocations: 16.7 kB / 330.1 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006494/0.01873, allocations: 173.7 kB / 330.3 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.01874, allocations: 5 kB / 330.3 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.778e-05/0.01876, allocations: 1.734 kB / 330.3 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.01877, allocations: 0.9375 kB / 330.3 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001479/0.01892, allocations: 46.3 kB / 330.4 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006253/0.01955, allocations: 316.9 kB / 330.7 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003135/0.01986, allocations: 118.8 kB / 330.8 MB, free: 12.78 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001166/0.01998, allocations: 43.38 kB / 330.8 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.111e-05/0.02001, allocations: 5.766 kB / 330.8 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001985/0.02021, allocations: 82.41 kB / 330.9 MB, free: 12.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 2.365e-06/0.02021, allocations: 3.938 kB / 330.9 MB, free: 12.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.000463/0.02067, allocations: 163.3 kB / 331.1 MB, free: 12.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001093/0.02078, allocations: 139.9 kB / 331.2 MB, free: 12.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004257/0.02121, allocations: 335.2 kB / 331.5 MB, free: 12.22 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.818e-05/0.02123, allocations: 30.73 kB / 331.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001131/0.02135, allocations: 130.3 kB / 331.7 MB, free: 12.06 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.682e-05/0.02137, allocations: 11.12 kB / 331.7 MB, free: 12.05 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.953e-05/0.02143, allocations: 30.42 kB / 331.7 MB, free: 12.03 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.0216, allocations: 333.4 kB / 332.1 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.491e-05/0.02168, allocations: 27.17 kB / 332.1 MB, free: 11.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001422/0.02182, allocations: 111.3 kB / 332.2 MB, free: 11.57 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001482/0.02197, allocations: 62.45 kB / 332.3 MB, free: 11.53 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.02197, allocations: 0 / 332.3 MB, free: 11.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002444/0.02221, allocations: 115.4 kB / 332.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.02223, allocations: 5.656 kB / 332.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.728e-06/0.02223, allocations: 0 / 332.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.985e-05/0.02225, allocations: 5.141 kB / 332.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001035/0.02236, allocations: 14.38 kB / 332.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.121e-06/0.02236, allocations: 5.219 kB / 332.4 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.862e-05/0.02245, allocations: 7.312 kB / 332.4 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.648e-05/0.02247, allocations: 6.234 kB / 332.4 MB, free: 11.43 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.0001705/0.02264, allocations: 151.6 kB / 332.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001131/0.02275, allocations: 70.7 kB / 332.6 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003026/0.02305, allocations: 119.6 kB / 332.8 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.693e-06/0.02306, allocations: 6.172 kB / 332.8 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.02307, allocations: 1.094 kB / 332.8 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.02307, allocations: 5.594 kB / 332.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002367/0.02331, allocations: 176.3 kB / 332.9 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.634e-06/0.02331, allocations: 1.219 kB / 332.9 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.224e-05/0.02339, allocations: 18.3 kB / 333 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.0234, allocations: 1.156 kB / 333 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.02341, allocations: 2.312 kB / 333 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.926e-06/0.02342, allocations: 9.219 kB / 333 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.02342, allocations: 1 kB / 333 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003333/0.02376, allocations: 171 kB / 333.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001049/0.02386, allocations: 45.55 kB / 333.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.896e-05/0.0239, allocations: 6.688 kB / 333.2 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.552e-05/0.02398, allocations: 10.19 kB / 333.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.674e-05/0.02403, allocations: 7.266 kB / 333.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.209e-05/0.02405, allocations: 8.578 kB / 333.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002806/0.02433, allocations: 247.8 kB / 333.5 MB, free: 10.65 MB / 302.1 MB Notification: Performance of sort global known variables: time 8e-08/0.02433, allocations: 0 / 333.5 MB, free: 10.65 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000299/0.02463, allocations: 38.36 kB / 333.5 MB, free: 10.64 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.001701/0.02633, allocations: 450.5 kB / 333.9 MB, free: 10.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000255/0.02659, allocations: 79.64 kB / 334 MB, free: 10.39 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.02659, allocations: 1.125 kB / 334 MB, free: 10.39 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001001/0.02669, allocations: 33.42 kB / 334 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000434/0.02713, allocations: 67.64 kB / 334.1 MB, free: 10.35 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007274/0.02785, allocations: 380.3 kB / 334.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001598/0.02801, allocations: 135.4 kB / 334.6 MB, free: 9.961 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.29e-05/0.02811, allocations: 26.81 kB / 334.6 MB, free: 9.953 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.281e-05/0.02817, allocations: 20.72 kB / 334.7 MB, free: 9.945 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.02817, allocations: 3.938 kB / 334.7 MB, free: 9.941 MB / 302.1 MB Notification: Performance of Templates: time 0.007835/0.036, allocations: 3.025 MB / 337.7 MB, free: 8.352 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.473485264927149]