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.00151/0.00151, allocations: 122.5 kB / 18.46 MB, free: 4.613 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.001518/0.001518, allocations: 186.7 kB / 21.39 MB, free: 1.688 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.381/1.381, allocations: 225.6 MB / 249.8 MB, free: 3.621 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 0.001433/0.001433, allocations: 51.92 kB / 366.8 MB, free: 360 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08779/0.08922, allocations: 52.15 MB / 419 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.00328/0.0925, allocations: 1.886 MB / 420.8 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001867/0.09437, allocations: 1.161 MB / 422 MB, free: 9.051 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.96e-05/0.09447, allocations: 4 kB / 422 MB, free: 9.047 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002774/0.09474, allocations: 59.66 kB / 422.1 MB, free: 8.988 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002556/0.095, allocations: 95.59 kB / 422.2 MB, free: 8.895 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006953/0.09569, allocations: 254.5 kB / 422.4 MB, free: 8.648 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002312/0.09592, allocations: 163.6 kB / 422.6 MB, free: 8.488 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.736e-05/0.09602, allocations: 21.55 kB / 422.6 MB, free: 8.469 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001228/0.09615, allocations: 75.69 kB / 422.7 MB, free: 8.395 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001308/0.09628, allocations: 87.61 kB / 422.7 MB, free: 8.309 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.637e-05/0.0963, allocations: 8 kB / 422.8 MB, free: 8.301 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001646/0.09647, allocations: 71.94 kB / 422.8 MB, free: 8.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.573e-05/0.09655, allocations: 59.78 kB / 422.9 MB, free: 8.172 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.381e-05/0.09664, allocations: 71.42 kB / 422.9 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003456/0.09698, allocations: 243 kB / 423.2 MB, free: 7.863 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.095e-06/0.09698, allocations: 0 / 423.2 MB, free: 7.863 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.09699, allocations: 0 / 423.2 MB, free: 7.863 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.09699, allocations: 0 / 423.2 MB, free: 7.863 MB / 350.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.0007587/0.09775, allocations: 0.531 MB / 423.7 MB, free: 7.277 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.243e-05/0.09778, allocations: 11.89 kB / 423.7 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.325e-05/0.09785, allocations: 24.8 kB / 423.8 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004061/0.09825, allocations: 299.7 kB / 424 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.038e-05/0.09827, allocations: 12.36 kB / 424.1 MB, free: 6.898 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.669e-05/0.09829, allocations: 8.125 kB / 424.1 MB, free: 6.891 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003357/0.09862, allocations: 159.6 kB / 424.2 MB, free: 6.707 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.09863, allocations: 0 / 424.2 MB, free: 6.707 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.608e-05/0.09865, allocations: 4 kB / 424.2 MB, free: 6.703 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.09866, allocations: 4 kB / 424.2 MB, free: 6.699 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001098/0.09877, allocations: 31.92 kB / 424.3 MB, free: 6.668 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005209/0.09929, allocations: 398.3 kB / 424.6 MB, free: 6.223 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002576/0.09954, allocations: 107.9 kB / 424.8 MB, free: 6.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.424e-05/0.09964, allocations: 54.5 kB / 424.8 MB, free: 6.027 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.321e-05/0.09966, allocations: 0 / 424.8 MB, free: 6.027 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000166/0.09983, allocations: 83.31 kB / 424.9 MB, free: 5.934 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.263e-06/0.09983, allocations: 0 / 424.9 MB, free: 5.934 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003884/0.1002, allocations: 145.5 kB / 425 MB, free: 5.785 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001126/0.1003, allocations: 166.5 kB / 425.2 MB, free: 5.586 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003526/0.1007, allocations: 326.7 kB / 425.5 MB, free: 5.258 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.235e-05/0.1007, allocations: 29.7 kB / 425.5 MB, free: 5.223 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.584e-05/0.1008, allocations: 120.1 kB / 425.7 MB, free: 5.102 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.106e-05/0.1008, allocations: 15.89 kB / 425.7 MB, free: 5.086 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.306e-05/0.1009, allocations: 33.67 kB / 425.7 MB, free: 5.047 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.101, allocations: 334.8 kB / 426 MB, free: 4.711 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.528e-05/0.1011, allocations: 35.92 kB / 426.1 MB, free: 4.676 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001163/0.1012, allocations: 82.8 kB / 426.2 MB, free: 4.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001694/0.1014, allocations: 92.45 kB / 426.2 MB, free: 4.465 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.1014, allocations: 0 / 426.2 MB, free: 4.465 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002363/0.1016, allocations: 125.5 kB / 426.4 MB, free: 4.336 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/0.1017, allocations: 4 kB / 426.4 MB, free: 4.332 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.1017, allocations: 4 kB / 426.4 MB, free: 4.328 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.278e-05/0.1017, allocations: 0 / 426.4 MB, free: 4.328 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000105/0.1018, allocations: 24.11 kB / 426.4 MB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/0.1018, allocations: 0 / 426.4 MB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.505e-05/0.1019, allocations: 15.83 kB / 426.4 MB, free: 4.289 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.016e-05/0.1019, allocations: 4 kB / 426.4 MB, free: 4.285 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001516/0.102, allocations: 161.8 kB / 426.6 MB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.749e-05/0.1021, allocations: 61.56 kB / 426.6 MB, free: 4.051 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.312e-05/0.1022, allocations: 29.7 kB / 426.7 MB, free: 4.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.1022, allocations: 0 / 426.7 MB, free: 4.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.636e-06/0.1022, allocations: 4.062 kB / 426.7 MB, free: 4.016 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.1022, allocations: 7.922 kB / 426.7 MB, free: 4.008 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000219/0.1024, allocations: 233.6 kB / 426.9 MB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.1024, allocations: 4 kB / 426.9 MB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.254e-05/0.1025, allocations: 11.94 kB / 426.9 MB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.1025, allocations: 0 / 426.9 MB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.36e-05/0.1025, allocations: 7.984 kB / 426.9 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.1025, allocations: 0 / 426.9 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1025, allocations: 0 / 426.9 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002829/0.1028, allocations: 174.5 kB / 427.1 MB, free: 3.512 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001105/0.1029, allocations: 116.9 kB / 427.2 MB, free: 3.379 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.018e-05/0.1029, allocations: 4.062 kB / 427.2 MB, free: 3.375 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.39e-05/0.103, allocations: 7.984 kB / 427.2 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.477e-05/0.103, allocations: 8 kB / 427.2 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.64e-05/0.1031, allocations: 11.92 kB / 427.2 MB, free: 3.348 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002483/0.1033, allocations: 245.9 kB / 427.5 MB, free: 3.105 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1033, allocations: 3.938 kB / 427.5 MB, free: 3.102 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002519/0.1036, allocations: 28 kB / 427.5 MB, free: 3.074 MB / 350.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.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * 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.001442/0.105, allocations: 439.5 kB / 427.9 MB, free: 2.812 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002224/0.1052, allocations: 67.84 kB / 428 MB, free: 2.746 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.1052, allocations: 0 / 428 MB, free: 2.746 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.488e-05/0.1053, allocations: 36.36 kB / 428 MB, free: 2.711 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000415/0.1057, allocations: 65.08 kB / 428.1 MB, free: 2.648 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000614/0.1063, allocations: 390.4 kB / 428.5 MB, free: 2.227 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003768/0.1067, allocations: 0.7438 MB / 429.2 MB, free: 1.457 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.434e-05/0.1068, allocations: 27.42 kB / 429.3 MB, free: 1.43 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1068, allocations: 0 / 429.3 MB, free: 1.43 MB / 350.1 MB Notification: Performance of Templates: time 0.005199/0.112, allocations: 2.917 MB / 432.2 MB, free: 14.52 MB / 366.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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 6.949705120874569]