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.001364/0.001364, allocations: 107.5 kB / 20.43 MB, free: 1.066 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.001494/0.001494, allocations: 187.5 kB / 23.7 MB, free: 4.188 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.472/1.472, allocations: 225.7 MB / 252.5 MB, free: 12.85 MB / 206.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.002398/0.002398, allocations: 47.92 kB / 370.9 MB, free: 9.199 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3026/0.305, allocations: 52.17 MB / 423.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003488/0.3085, allocations: 1.866 MB / 424.9 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002091/0.3106, allocations: 1.083 MB / 426 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001091/0.3107, allocations: 7.938 kB / 426 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003088/0.311, allocations: 67.66 kB / 426.1 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002842/0.3113, allocations: 95.58 kB / 426.2 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007582/0.3121, allocations: 258.1 kB / 426.4 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002517/0.3123, allocations: 167.5 kB / 426.6 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001002/0.3124, allocations: 21.72 kB / 426.6 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001234/0.3125, allocations: 79.64 kB / 426.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001294/0.3127, allocations: 75.67 kB / 426.8 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.045e-05/0.3127, allocations: 12 kB / 426.8 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001708/0.3129, allocations: 71.94 kB / 426.8 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.118e-05/0.313, allocations: 55.7 kB / 426.9 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.582e-05/0.313, allocations: 55.61 kB / 426.9 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003536/0.3134, allocations: 245.3 kB / 427.2 MB, free: 10.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.3134, allocations: 0 / 427.2 MB, free: 10.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 7.81e-07/0.3134, allocations: 0 / 427.2 MB, free: 10.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.229e-06/0.3134, allocations: 0 / 427.2 MB, free: 10.34 MB / 334.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.0007631/0.3142, allocations: 470.5 kB / 427.6 MB, free: 9.844 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.3142, allocations: 12.03 kB / 427.7 MB, free: 9.832 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.103e-05/0.3143, allocations: 20.8 kB / 427.7 MB, free: 9.812 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004344/0.3147, allocations: 233.5 kB / 427.9 MB, free: 9.562 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.105e-05/0.3147, allocations: 12.38 kB / 427.9 MB, free: 9.551 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.233e-05/0.3147, allocations: 8.125 kB / 427.9 MB, free: 9.543 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003689/0.3151, allocations: 184.4 kB / 428.1 MB, free: 9.332 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.682e-05/0.3151, allocations: 7.984 kB / 428.1 MB, free: 9.324 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.3151, allocations: 0 / 428.1 MB, free: 9.324 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.3151, allocations: 0 / 428.1 MB, free: 9.324 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001209/0.3153, allocations: 39.97 kB / 428.2 MB, free: 9.285 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004999/0.3158, allocations: 318 kB / 428.5 MB, free: 8.938 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002663/0.316, allocations: 119.9 kB / 428.6 MB, free: 8.793 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.552e-05/0.3161, allocations: 46.55 kB / 428.6 MB, free: 8.738 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.054e-05/0.3161, allocations: 0 / 428.6 MB, free: 8.738 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001809/0.3163, allocations: 83.31 kB / 428.7 MB, free: 8.645 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.393e-06/0.3163, allocations: 0 / 428.7 MB, free: 8.645 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003958/0.3167, allocations: 157.7 kB / 428.9 MB, free: 8.484 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.396e-05/0.3168, allocations: 136.5 kB / 429 MB, free: 8.32 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003614/0.3172, allocations: 333.8 kB / 429.3 MB, free: 7.988 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.697e-05/0.3172, allocations: 29.64 kB / 429.3 MB, free: 7.953 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.668e-05/0.3173, allocations: 128.1 kB / 429.5 MB, free: 7.824 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.779e-05/0.3173, allocations: 15.95 kB / 429.5 MB, free: 7.809 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.596e-05/0.3174, allocations: 33.67 kB / 429.5 MB, free: 7.77 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.3176, allocations: 338.8 kB / 429.9 MB, free: 7.43 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.919e-05/0.3176, allocations: 27.92 kB / 429.9 MB, free: 7.402 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001488/0.3178, allocations: 133.4 kB / 430 MB, free: 7.238 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001635/0.3179, allocations: 88.25 kB / 430.1 MB, free: 7.137 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.318, allocations: 0 / 430.1 MB, free: 7.137 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002459/0.3182, allocations: 125.4 kB / 430.2 MB, free: 7.008 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.3182, allocations: 4 kB / 430.2 MB, free: 7.004 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.3182, allocations: 4 kB / 430.2 MB, free: 7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.3182, allocations: 0 / 430.2 MB, free: 7 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001135/0.3183, allocations: 24.11 kB / 430.3 MB, free: 6.977 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.621e-06/0.3183, allocations: 0 / 430.3 MB, free: 6.977 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.665e-05/0.3184, allocations: 12.27 kB / 430.3 MB, free: 6.965 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.119e-05/0.3184, allocations: 4 kB / 430.3 MB, free: 6.961 MB / 334.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.0001575/0.3186, allocations: 161.6 kB / 430.4 MB, free: 6.793 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.539e-05/0.3187, allocations: 73.48 kB / 430.5 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002763/0.319, allocations: 119.4 kB / 430.6 MB, free: 6.59 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.193e-06/0.319, allocations: 4 kB / 430.6 MB, free: 6.586 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.319, allocations: 4.062 kB / 430.6 MB, free: 6.582 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.319, allocations: 0 / 430.6 MB, free: 6.582 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00019/0.3192, allocations: 177.2 kB / 430.8 MB, free: 6.379 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.3192, allocations: 0 / 430.8 MB, free: 6.379 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.93e-05/0.3192, allocations: 12 kB / 430.8 MB, free: 6.367 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.3192, allocations: 0 / 430.8 MB, free: 6.367 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.663e-05/0.3193, allocations: 4 kB / 430.8 MB, free: 6.363 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.3e-06/0.3193, allocations: 7.922 kB / 430.8 MB, free: 6.355 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3193, allocations: 0 / 430.8 MB, free: 6.355 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002907/0.3196, allocations: 178.5 kB / 431 MB, free: 6.156 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.337e-05/0.3197, allocations: 43.84 kB / 431 MB, free: 6.113 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.03e-05/0.3197, allocations: 0 / 431 MB, free: 6.113 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.697e-05/0.3198, allocations: 11.98 kB / 431 MB, free: 6.102 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.331e-05/0.3198, allocations: 7.984 kB / 431.1 MB, free: 6.094 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.774e-05/0.3198, allocations: 4 kB / 431.1 MB, free: 6.09 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000262/0.3201, allocations: 241.3 kB / 431.3 MB, free: 5.852 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3201, allocations: 7.875 kB / 431.3 MB, free: 5.844 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002765/0.3204, allocations: 35.92 kB / 431.3 MB, free: 5.809 MB / 334.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.001698/0.3221, allocations: 453 kB / 431.8 MB, free: 5.543 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002416/0.3223, allocations: 79.77 kB / 431.9 MB, free: 5.465 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.3223, allocations: 0 / 431.9 MB, free: 5.465 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.758e-05/0.3224, allocations: 27.98 kB / 431.9 MB, free: 5.438 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004419/0.3228, allocations: 66.48 kB / 431.9 MB, free: 5.375 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006349/0.3235, allocations: 368.7 kB / 432.3 MB, free: 4.98 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001377/0.3236, allocations: 128.4 kB / 432.4 MB, free: 4.836 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.367e-05/0.3237, allocations: 29.61 kB / 432.5 MB, free: 4.809 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.536e-05/0.3238, allocations: 23.44 kB / 432.5 MB, free: 4.785 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3238, allocations: 0 / 432.5 MB, free: 4.785 MB / 334.1 MB Notification: Performance of Templates: time 0.00749/0.3312, allocations: 3.125 MB / 435.6 MB, free: 1.715 MB / 334.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.673384161666036]