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.001922/0.001922, allocations: 95.86 kB / 20.96 MB, free: 3.465 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.002022/0.002022, allocations: 153.1 kB / 24.27 MB, free: 168 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 1.55/1.55, allocations: 173.3 MB / 200.8 MB, free: 9.324 MB / 186.7 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 1.483e-06/1.483e-06, allocations: 0 / 267.3 MB, free: 6.754 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.713e-05/2.861e-05, allocations: 2.312 kB / 267.3 MB, free: 6.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.00378/0.003809, allocations: 1.886 MB / 269.2 MB, free: 4.848 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002264/0.006073, allocations: 1.11 MB / 270.3 MB, free: 3.73 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000104/0.006177, allocations: 11.88 kB / 270.3 MB, free: 3.719 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003345/0.006512, allocations: 63.67 kB / 270.4 MB, free: 3.656 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003061/0.006818, allocations: 107.4 kB / 270.5 MB, free: 3.551 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007494/0.007567, allocations: 243.1 kB / 270.7 MB, free: 3.312 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002787/0.007846, allocations: 179.4 kB / 270.9 MB, free: 3.137 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001104/0.007956, allocations: 25.8 kB / 270.9 MB, free: 3.109 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001768/0.008133, allocations: 91.78 kB / 271 MB, free: 3.02 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001479/0.008281, allocations: 71.8 kB / 271.1 MB, free: 2.949 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.262e-05/0.008314, allocations: 8 kB / 271.1 MB, free: 2.941 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001857/0.008499, allocations: 75.8 kB / 271.2 MB, free: 2.867 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001007/0.0086, allocations: 55.78 kB / 271.2 MB, free: 2.812 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.937e-05/0.008679, allocations: 39.84 kB / 271.3 MB, free: 2.773 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004048/0.009084, allocations: 239.2 kB / 271.5 MB, free: 2.539 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.009087, allocations: 0 / 271.5 MB, free: 2.539 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.009089, allocations: 0 / 271.5 MB, free: 2.539 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.513e-06/0.009095, allocations: 0 / 271.5 MB, free: 2.539 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.0008858/0.009981, allocations: 0.567 MB / 272.1 MB, free: 1.93 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.01002, allocations: 12.03 kB / 272.1 MB, free: 1.918 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.247e-05/0.0101, allocations: 32.8 kB / 272.1 MB, free: 1.887 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004134/0.01052, allocations: 239.4 kB / 272.3 MB, free: 1.625 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.859e-05/0.01054, allocations: 4.375 kB / 272.3 MB, free: 1.621 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.934e-05/0.01055, allocations: 8.375 kB / 272.3 MB, free: 1.613 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003956/0.01095, allocations: 197.5 kB / 272.5 MB, free: 1.387 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.01096, allocations: 3.938 kB / 272.5 MB, free: 1.383 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.731e-05/0.01098, allocations: 8 kB / 272.6 MB, free: 1.375 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.01098, allocations: 0 / 272.6 MB, free: 1.375 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001139/0.0111, allocations: 31.92 kB / 272.6 MB, free: 1.344 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006381/0.01174, allocations: 391 kB / 273 MB, free: 0.918 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002848/0.01202, allocations: 137.2 kB / 273.1 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001165/0.01214, allocations: 51.05 kB / 273.1 MB, free: 0.6836 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.753e-05/0.01216, allocations: 8 kB / 273.2 MB, free: 0.6758 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001781/0.01234, allocations: 77.03 kB / 273.2 MB, free: 0.5859 MB / 250.7 MB Notification: Performance of pre-optimization done (n=9): time 1.283e-06/0.01234, allocations: 0 / 273.2 MB, free: 0.5859 MB / 250.7 MB Notification: Performance of matching and sorting (n=9): time 0.000415/0.01276, allocations: 149.4 kB / 273.4 MB, free: 444 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/0.01287, allocations: 128.5 kB / 273.5 MB, free: 284 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004458/0.01331, allocations: 364.3 kB / 273.9 MB, free: 15.9 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.808e-05/0.01334, allocations: 29.7 kB / 273.9 MB, free: 15.87 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001531/0.01349, allocations: 182.9 kB / 274.1 MB, free: 15.68 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.697e-05/0.01353, allocations: 28.14 kB / 274.1 MB, free: 15.66 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.896e-05/0.0136, allocations: 43.33 kB / 274.1 MB, free: 15.61 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002983/0.0139, allocations: 0.5157 MB / 274.7 MB, free: 15.08 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.75e-05/0.01395, allocations: 12 kB / 274.7 MB, free: 15.07 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000142/0.0141, allocations: 110.1 kB / 274.8 MB, free: 14.93 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001313/0.01423, allocations: 63.23 kB / 274.8 MB, free: 14.86 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.01423, allocations: 3.938 kB / 274.8 MB, free: 14.86 MB / 266.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002171/0.01445, allocations: 101.8 kB / 274.9 MB, free: 14.75 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.01447, allocations: 7.984 kB / 274.9 MB, free: 14.74 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.01447, allocations: 0 / 274.9 MB, free: 14.74 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/0.01449, allocations: 4.062 kB / 274.9 MB, free: 14.74 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/0.0146, allocations: 12 kB / 275 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.0146, allocations: 0 / 275 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.749e-05/0.01468, allocations: 11.95 kB / 275 MB, free: 14.71 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.404e-05/0.01469, allocations: 7.984 kB / 275 MB, free: 14.71 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 0.0001589/0.01485, allocations: 168.5 kB / 275.1 MB, free: 14.53 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001188/0.01497, allocations: 73.48 kB / 275.2 MB, free: 14.45 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002944/0.01527, allocations: 111.4 kB / 275.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.01527, allocations: 3.984 kB / 275.3 MB, free: 14.33 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.01528, allocations: 4.062 kB / 275.3 MB, free: 14.33 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.712e-06/0.01528, allocations: 4 kB / 275.3 MB, free: 14.32 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002725/0.01556, allocations: 212.5 kB / 275.5 MB, free: 14.08 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.01556, allocations: 0 / 275.5 MB, free: 14.08 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.184e-05/0.01563, allocations: 15.98 kB / 275.6 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.01563, allocations: 0 / 275.6 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.364e-05/0.01564, allocations: 4 kB / 275.6 MB, free: 14.06 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.01565, allocations: 0 / 275.6 MB, free: 14.06 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.01565, allocations: 4 kB / 275.6 MB, free: 14.06 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003325/0.01598, allocations: 187.5 kB / 275.7 MB, free: 13.84 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.625e-05/0.01608, allocations: 39.78 kB / 275.8 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.23e-05/0.01611, allocations: 4 kB / 275.8 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.709e-05/0.01618, allocations: 7.984 kB / 275.8 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.23e-05/0.01624, allocations: 11.98 kB / 275.8 MB, free: 13.78 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.886e-05/0.01626, allocations: 4 kB / 275.8 MB, free: 13.78 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002513/0.01651, allocations: 237.1 kB / 276 MB, free: 13.55 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01651, allocations: 0 / 276 MB, free: 13.55 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.00026/0.01677, allocations: 35.94 kB / 276.1 MB, free: 13.51 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.002951/0.01972, allocations: 455 kB / 276.5 MB, free: 13.25 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002625/0.01998, allocations: 67.59 kB / 276.6 MB, free: 13.18 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.01999, allocations: 0 / 276.6 MB, free: 13.18 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.836e-05/0.02009, allocations: 39.66 kB / 276.6 MB, free: 13.13 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004638/0.02055, allocations: 73.44 kB / 276.7 MB, free: 13.06 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006581/0.02121, allocations: 334 kB / 277 MB, free: 12.7 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001556/0.02136, allocations: 136.1 kB / 277.2 MB, free: 12.55 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.862e-05/0.02144, allocations: 21.48 kB / 277.2 MB, free: 12.53 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.532e-05/0.02151, allocations: 24.5 kB / 277.2 MB, free: 12.5 MB / 266.7 MB Notification: Performance of SimCode: time 8.22e-07/0.02151, allocations: 0 / 277.2 MB, free: 12.5 MB / 266.7 MB Notification: Performance of Templates: time 0.007748/0.02926, allocations: 2.994 MB / 280.2 MB, free: 9.559 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","/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.601282890886068]