Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.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.001343/0.001343, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.001811/0.001811, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.523/1.523, allocations: 230.6 MB / 258.3 MB, free: 7.98 MB / 206.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.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5019,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5019,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001608/0.001608, allocations: 47.92 kB / 379 MB, free: 2.723 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3188/0.3204, allocations: 53.36 MB / 432.4 MB, free: 6.949 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.003101/0.3235, allocations: 1.582 MB / 434 MB, free: 5.363 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001087/0.3246, allocations: 0.5648 MB / 434.5 MB, free: 4.793 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.741e-05/0.3246, allocations: 7.875 kB / 434.5 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.715e-05/0.3247, allocations: 7.938 kB / 434.5 MB, free: 4.777 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001448/0.3248, allocations: 15.86 kB / 434.6 MB, free: 4.762 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003315/0.3252, allocations: 59.83 kB / 434.6 MB, free: 4.703 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001258/0.3253, allocations: 55.77 kB / 434.7 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.793e-05/0.3254, allocations: 8.188 kB / 434.7 MB, free: 4.641 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001167/0.3255, allocations: 27.86 kB / 434.7 MB, free: 4.613 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.989e-05/0.3256, allocations: 27.84 kB / 434.7 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.522e-05/0.3256, allocations: 0 / 434.7 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.46e-05/0.3256, allocations: 16 kB / 434.8 MB, free: 4.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.012e-05/0.3257, allocations: 15.92 kB / 434.8 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.654e-05/0.3257, allocations: 19.81 kB / 434.8 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001546/0.3259, allocations: 64.94 kB / 434.9 MB, free: 4.477 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.3259, allocations: 4 kB / 434.9 MB, free: 4.473 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3259, allocations: 0 / 434.9 MB, free: 4.473 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.3259, allocations: 0 / 434.9 MB, free: 4.473 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004949/0.3264, allocations: 309.9 kB / 435.2 MB, free: 4.141 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.3264, allocations: 8.031 kB / 435.2 MB, free: 4.133 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001687/0.3266, allocations: 24.86 kB / 435.2 MB, free: 4.109 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000251/0.3268, allocations: 146.9 kB / 435.3 MB, free: 3.941 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.001e-06/0.3268, allocations: 384 / 435.3 MB, free: 3.941 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.045e-05/0.3269, allocations: 11.94 kB / 435.3 MB, free: 3.93 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002747/0.3271, allocations: 105 kB / 435.4 MB, free: 3.809 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.3272, allocations: 0 / 435.4 MB, free: 3.809 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.568e-06/0.3272, allocations: 0 / 435.4 MB, free: 3.809 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.389e-06/0.3272, allocations: 0 / 435.4 MB, free: 3.809 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.48e-05/0.3272, allocations: 19.98 kB / 435.5 MB, free: 3.789 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003349/0.3276, allocations: 236.8 kB / 435.7 MB, free: 3.512 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.31e-05/0.3277, allocations: 49.2 kB / 435.7 MB, free: 3.445 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.024e-05/0.3277, allocations: 13.78 kB / 435.8 MB, free: 3.426 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.083e-05/0.3277, allocations: 3.938 kB / 435.8 MB, free: 3.422 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.932e-05/0.3278, allocations: 34.56 kB / 435.8 MB, free: 3.379 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 2.965e-06/0.3278, allocations: 4 kB / 435.8 MB, free: 3.375 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002482/0.328, allocations: 69.56 kB / 435.9 MB, free: 3.301 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.512e-05/0.3281, allocations: 81.11 kB / 435.9 MB, free: 3.203 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001477/0.3282, allocations: 147.4 kB / 436.1 MB, free: 3.051 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.762e-05/0.3283, allocations: 29.7 kB / 436.1 MB, free: 3.016 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.053e-05/0.3283, allocations: 88.14 kB / 436.2 MB, free: 2.926 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.404e-05/0.3283, allocations: 4.203 kB / 436.2 MB, free: 2.922 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.517e-05/0.3284, allocations: 21.7 kB / 436.2 MB, free: 2.895 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.3285, allocations: 322.8 kB / 436.5 MB, free: 2.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.031e-05/0.3285, allocations: 7.984 kB / 436.6 MB, free: 2.562 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.15e-05/0.3286, allocations: 21.66 kB / 436.6 MB, free: 2.535 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.024e-05/0.3287, allocations: 37.7 kB / 436.6 MB, free: 2.492 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.3287, allocations: 0 / 436.6 MB, free: 2.492 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001257/0.3288, allocations: 57.62 kB / 436.7 MB, free: 2.43 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.3288, allocations: 8 kB / 436.7 MB, free: 2.422 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.3288, allocations: 0 / 436.7 MB, free: 2.422 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.3288, allocations: 3.938 kB / 436.7 MB, free: 2.418 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.918e-05/0.3289, allocations: 4 kB / 436.7 MB, free: 2.414 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.121e-06/0.3289, allocations: 0 / 436.7 MB, free: 2.414 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.087e-05/0.329, allocations: 12 kB / 436.7 MB, free: 2.402 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.476e-06/0.329, allocations: 3.984 kB / 436.7 MB, free: 2.398 MB / 334.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 8.88e-05/0.329, allocations: 109.8 kB / 436.8 MB, free: 2.281 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.19e-05/0.3291, allocations: 41.66 kB / 436.8 MB, free: 2.234 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.475e-05/0.3291, allocations: 15.8 kB / 436.9 MB, free: 2.219 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.3291, allocations: 0 / 436.9 MB, free: 2.219 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.3292, allocations: 0 / 436.9 MB, free: 2.219 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.3292, allocations: 3.938 kB / 436.9 MB, free: 2.215 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001681/0.3293, allocations: 140.7 kB / 437 MB, free: 2.035 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.3293, allocations: 4.031 kB / 437 MB, free: 2.031 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.263e-05/0.3294, allocations: 8 kB / 437 MB, free: 2.023 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.3294, allocations: 7.938 kB / 437 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.967e-06/0.3294, allocations: 3.984 kB / 437 MB, free: 2.012 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.3294, allocations: 0 / 437 MB, free: 2.012 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.3294, allocations: 0 / 437 MB, free: 2.012 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001759/0.3296, allocations: 160.3 kB / 437.2 MB, free: 1.836 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.681e-05/0.3296, allocations: 15.94 kB / 437.2 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.6e-05/0.3296, allocations: 4 kB / 437.2 MB, free: 1.816 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.383e-05/0.3297, allocations: 0 / 437.2 MB, free: 1.816 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.57e-05/0.3297, allocations: 7.922 kB / 437.2 MB, free: 1.809 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.839e-06/0.3297, allocations: 4 kB / 437.2 MB, free: 1.805 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.315e-05/0.3298, allocations: 105 kB / 437.3 MB, free: 1.703 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3298, allocations: 0 / 437.3 MB, free: 1.703 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002209/0.33, allocations: 8 kB / 437.3 MB, free: 1.695 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 9.588e-05/0.3301, allocations: 107.2 kB / 437.4 MB, free: 1.582 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001506/0.3303, allocations: 23.92 kB / 437.5 MB, free: 1.559 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3303, allocations: 4 kB / 437.5 MB, free: 1.555 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.346e-05/0.3303, allocations: 4 kB / 437.5 MB, free: 1.551 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003261/0.3306, allocations: 19.95 kB / 437.5 MB, free: 1.531 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000379/0.331, allocations: 205.5 kB / 437.7 MB, free: 1.293 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000325/0.3313, allocations: 0.6885 MB / 438.4 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.098e-05/0.3314, allocations: 15.42 kB / 438.4 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3314, allocations: 0 / 438.4 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of Templates: time 0.002568/0.3339, allocations: 0.7959 MB / 439.2 MB, free: 15.77 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.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: 7.164685464929789]