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.0007351/0.0007351, allocations: 87.62 kB / 21.44 MB, free: 3.129 MB / 18.57 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.004173/0.004173, allocations: 163.2 kB / 24.7 MB, free: 9.426 MB / 18.57 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 0.8762/0.8762, allocations: 177.1 MB / 205 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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 1.894e-06/1.894e-06, allocations: 0 / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.659e-05/3.848e-05, allocations: 6.281 kB / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.002259/0.002298, allocations: 1.581 MB / 327.4 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008398/0.003138, allocations: 0.5337 MB / 327.9 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.883e-05/0.003226, allocations: 3.938 kB / 327.9 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.737e-05/0.003274, allocations: 3.938 kB / 327.9 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001502/0.003424, allocations: 15.86 kB / 328 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003313/0.003755, allocations: 63.62 kB / 328 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001144/0.00387, allocations: 51.78 kB / 328.1 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001071/0.003977, allocations: 16.11 kB / 328.1 MB, free: 13.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001351/0.004112, allocations: 27.97 kB / 328.1 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.31e-05/0.004165, allocations: 23.92 kB / 328.1 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.76e-05/0.004183, allocations: 4 kB / 328.1 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.892e-05/0.004222, allocations: 4 kB / 328.1 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.157e-05/0.004273, allocations: 19.91 kB / 328.2 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.215e-05/0.004295, allocations: 11.94 kB / 328.2 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001527/0.004448, allocations: 59.8 kB / 328.2 MB, free: 13.02 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.004451, allocations: 0 / 328.2 MB, free: 13.02 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.004453, allocations: 0 / 328.2 MB, free: 13.02 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.00446, allocations: 3.984 kB / 328.2 MB, free: 13.01 MB / 298.7 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.0004405/0.004901, allocations: 308.8 kB / 328.5 MB, free: 12.68 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.004939, allocations: 11.97 kB / 328.5 MB, free: 12.67 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000131/0.00507, allocations: 24.88 kB / 328.6 MB, free: 12.65 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002284/0.005299, allocations: 138.2 kB / 328.7 MB, free: 12.49 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.016e-05/0.005309, allocations: 4.375 kB / 328.7 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.19e-05/0.005321, allocations: 4.359 kB / 328.7 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002352/0.005556, allocations: 109.4 kB / 328.8 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.403e-06/0.005563, allocations: 4 kB / 328.8 MB, free: 12.35 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.656e-06/0.005572, allocations: 0 / 328.8 MB, free: 12.35 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.005577, allocations: 0 / 328.8 MB, free: 12.35 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.569e-05/0.005622, allocations: 23.92 kB / 328.8 MB, free: 12.33 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002659/0.005888, allocations: 201.5 kB / 329 MB, free: 12.1 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.764e-05/0.005956, allocations: 53.08 kB / 329.1 MB, free: 12.03 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.843e-05/0.005984, allocations: 17.77 kB / 329.1 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.849e-05/0.006003, allocations: 0 / 329.1 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.174e-05/0.006025, allocations: 42.5 kB / 329.2 MB, free: 11.95 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 7.41e-07/0.006025, allocations: 4 kB / 329.2 MB, free: 11.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001778/0.006203, allocations: 65.56 kB / 329.2 MB, free: 11.88 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.038e-05/0.006254, allocations: 81.11 kB / 329.3 MB, free: 11.78 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001043/0.006358, allocations: 148.8 kB / 329.4 MB, free: 11.63 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.518e-06/0.006367, allocations: 25.7 kB / 329.5 MB, free: 11.6 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.249e-05/0.00641, allocations: 88.12 kB / 329.6 MB, free: 11.51 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.457e-05/0.006425, allocations: 7.953 kB / 329.6 MB, free: 11.5 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.568e-05/0.00645, allocations: 9.719 kB / 329.6 MB, free: 11.48 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.752e-05/0.006548, allocations: 331 kB / 329.9 MB, free: 11.15 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.442e-05/0.006572, allocations: 4 kB / 329.9 MB, free: 11.15 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.784e-05/0.00659, allocations: 11.98 kB / 329.9 MB, free: 11.14 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.387e-05/0.006644, allocations: 16.8 kB / 329.9 MB, free: 11.12 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.006647, allocations: 3.938 kB / 329.9 MB, free: 11.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.382e-05/0.006731, allocations: 57.62 kB / 330 MB, free: 11.05 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.006747, allocations: 4 kB / 330 MB, free: 11.05 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.383e-06/0.006754, allocations: 8.078 kB / 330 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.006768, allocations: 0 / 330 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.349e-05/0.006832, allocations: 4 kB / 330 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/0.006838, allocations: 0 / 330 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.839e-05/0.006856, allocations: 4 kB / 330 MB, free: 11.03 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.047e-06/0.006865, allocations: 3.984 kB / 330 MB, free: 11.03 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (1): * Single equations (assignments): 1 * 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.112e-05/0.006946, allocations: 117.8 kB / 330.1 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.028e-05/0.006987, allocations: 41.59 kB / 330.2 MB, free: 10.86 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.205e-05/0.007019, allocations: 19.8 kB / 330.2 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.007021, allocations: 0 / 330.2 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.007027, allocations: 4.031 kB / 330.2 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.007031, allocations: 0 / 330.2 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001046/0.007135, allocations: 117.2 kB / 330.3 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.007137, allocations: 0 / 330.3 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.553e-05/0.007162, allocations: 7.984 kB / 330.3 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.007164, allocations: 0 / 330.3 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.138e-05/0.007176, allocations: 4 kB / 330.3 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.007178, allocations: 4 kB / 330.3 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.007179, allocations: 0 / 330.3 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001128/0.007292, allocations: 168.2 kB / 330.5 MB, free: 10.49 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.958e-05/0.007321, allocations: 7.953 kB / 330.5 MB, free: 10.48 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.324e-05/0.007334, allocations: 8 kB / 330.5 MB, free: 10.48 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.145e-05/0.007366, allocations: 3.984 kB / 330.5 MB, free: 10.47 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.894e-05/0.007395, allocations: 0 / 330.5 MB, free: 10.47 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.178e-06/0.007399, allocations: 4 kB / 330.5 MB, free: 10.47 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.286e-05/0.007452, allocations: 107.2 kB / 330.6 MB, free: 10.36 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.007452, allocations: 3.938 kB / 330.6 MB, free: 10.36 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001466/0.007599, allocations: 11.94 kB / 330.6 MB, free: 10.35 MB / 298.7 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 8.196e-05/0.00768, allocations: 95.28 kB / 330.7 MB, free: 10.25 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.5e-05/0.007775, allocations: 19.98 kB / 330.7 MB, free: 10.23 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.007777, allocations: 0 / 330.7 MB, free: 10.23 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.077e-05/0.007798, allocations: 15.92 kB / 330.8 MB, free: 10.21 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002561/0.008054, allocations: 15.97 kB / 330.8 MB, free: 10.2 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003207/0.008375, allocations: 199.8 kB / 331 MB, free: 9.965 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.099e-05/0.008446, allocations: 83.3 kB / 331.1 MB, free: 9.863 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.879e-05/0.008475, allocations: 12.5 kB / 331.1 MB, free: 9.852 MB / 298.7 MB Notification: Performance of SimCode: time 3.7e-07/0.008475, allocations: 0 / 331.1 MB, free: 9.852 MB / 298.7 MB Notification: Performance of Templates: time 0.001746/0.01022, allocations: 0.7976 MB / 331.9 MB, free: 9.059 MB / 298.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins/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: 3.9440032597631216]