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.001746/0.001746, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.00278/0.00278, allocations: 207.8 kB / 23.73 MB, free: 4.523 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.578/1.578, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.001589/0.001589, allocations: 55.91 kB / 378.2 MB, free: 2.496 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2888/0.2904, allocations: 53.36 MB / 431.6 MB, free: 6.75 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.002885/0.2933, allocations: 1.571 MB / 433.1 MB, free: 5.176 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00106/0.2943, allocations: 0.5181 MB / 433.7 MB, free: 4.652 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.642e-05/0.2944, allocations: 3.938 kB / 433.7 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.079e-05/0.2945, allocations: 7.938 kB / 433.7 MB, free: 4.641 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001406/0.2946, allocations: 15.88 kB / 433.7 MB, free: 4.625 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003658/0.295, allocations: 63.8 kB / 433.7 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001394/0.2951, allocations: 51.8 kB / 433.8 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001117/0.2952, allocations: 12.17 kB / 433.8 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001292/0.2953, allocations: 31.84 kB / 433.8 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.992e-05/0.2954, allocations: 27.86 kB / 433.9 MB, free: 4.441 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.319e-05/0.2954, allocations: 0 / 433.9 MB, free: 4.441 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.003e-05/0.2955, allocations: 8 kB / 433.9 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.987e-05/0.2955, allocations: 15.92 kB / 433.9 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.248e-05/0.2955, allocations: 19.81 kB / 433.9 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001538/0.2957, allocations: 65.98 kB / 434 MB, free: 4.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.2957, allocations: 0 / 434 MB, free: 4.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2957, allocations: 0 / 434 MB, free: 4.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.2957, allocations: 3.938 kB / 434 MB, free: 4.336 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.0005144/0.2962, allocations: 305.9 kB / 434.3 MB, free: 4.008 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.2963, allocations: 12.03 kB / 434.3 MB, free: 3.996 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001668/0.2964, allocations: 20.88 kB / 434.3 MB, free: 3.977 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002402/0.2967, allocations: 145.3 kB / 434.4 MB, free: 3.812 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.454e-05/0.2967, allocations: 4.375 kB / 434.5 MB, free: 3.809 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.435e-05/0.2967, allocations: 7.938 kB / 434.5 MB, free: 3.801 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002639/0.297, allocations: 105 kB / 434.6 MB, free: 3.68 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.297, allocations: 4 kB / 434.6 MB, free: 3.676 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.925e-06/0.297, allocations: 0 / 434.6 MB, free: 3.676 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.297, allocations: 0 / 434.6 MB, free: 3.676 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.478e-05/0.2971, allocations: 23.92 kB / 434.6 MB, free: 3.652 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002835/0.2973, allocations: 205.4 kB / 434.8 MB, free: 3.418 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.595e-05/0.2974, allocations: 49.14 kB / 434.8 MB, free: 3.352 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.979e-05/0.2975, allocations: 17.78 kB / 434.9 MB, free: 3.328 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.714e-05/0.2975, allocations: 0 / 434.9 MB, free: 3.328 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.933e-05/0.2976, allocations: 38.56 kB / 434.9 MB, free: 3.281 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.213e-06/0.2976, allocations: 3.938 kB / 434.9 MB, free: 3.277 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.000243/0.2978, allocations: 65.56 kB / 435 MB, free: 3.207 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.312e-05/0.2979, allocations: 81.11 kB / 435 MB, free: 3.109 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001391/0.298, allocations: 152.6 kB / 435.2 MB, free: 2.953 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.525e-05/0.298, allocations: 25.7 kB / 435.2 MB, free: 2.922 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.412e-05/0.2981, allocations: 88.09 kB / 435.3 MB, free: 2.832 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.263e-05/0.2981, allocations: 4 kB / 435.3 MB, free: 2.828 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.683e-05/0.2981, allocations: 21.89 kB / 435.3 MB, free: 2.801 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.2983, allocations: 326.8 kB / 435.6 MB, free: 2.473 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.294e-05/0.2983, allocations: 7.984 kB / 435.7 MB, free: 2.465 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.559e-05/0.2983, allocations: 21.66 kB / 435.7 MB, free: 2.438 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.964e-05/0.2984, allocations: 29.7 kB / 435.7 MB, free: 2.402 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.2984, allocations: 0 / 435.7 MB, free: 2.402 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001272/0.2985, allocations: 61.67 kB / 435.8 MB, free: 2.336 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.2986, allocations: 7.984 kB / 435.8 MB, free: 2.328 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.467e-06/0.2986, allocations: 0 / 435.8 MB, free: 2.328 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/0.2986, allocations: 4 kB / 435.8 MB, free: 2.324 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.804e-05/0.2987, allocations: 4 kB / 435.8 MB, free: 2.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.069e-06/0.2987, allocations: 0 / 435.8 MB, free: 2.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.496e-05/0.2987, allocations: 0 / 435.8 MB, free: 2.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.099e-05/0.2987, allocations: 7.938 kB / 435.8 MB, free: 2.312 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.987e-05/0.2988, allocations: 117.8 kB / 435.9 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.453e-05/0.2989, allocations: 41.59 kB / 435.9 MB, free: 2.141 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.08e-05/0.2989, allocations: 19.86 kB / 436 MB, free: 2.121 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.2989, allocations: 0 / 436 MB, free: 2.121 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.2989, allocations: 0 / 436 MB, free: 2.121 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.2989, allocations: 3.984 kB / 436 MB, free: 2.117 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001483/0.299, allocations: 121.2 kB / 436.1 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.2991, allocations: 4 kB / 436.1 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.752e-05/0.2991, allocations: 7.984 kB / 436.1 MB, free: 1.957 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.2991, allocations: 0 / 436.1 MB, free: 1.957 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.043e-06/0.2991, allocations: 0 / 436.1 MB, free: 1.957 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.536e-06/0.2991, allocations: 4 kB / 436.1 MB, free: 1.953 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.2991, allocations: 0 / 436.1 MB, free: 1.953 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001833/0.2993, allocations: 168.3 kB / 436.3 MB, free: 1.77 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.791e-05/0.2993, allocations: 11.94 kB / 436.3 MB, free: 1.758 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.627e-05/0.2993, allocations: 7.938 kB / 436.3 MB, free: 1.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.115e-05/0.2994, allocations: 7.922 kB / 436.3 MB, free: 1.742 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.459e-05/0.2994, allocations: 0 / 436.3 MB, free: 1.742 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.472e-06/0.2995, allocations: 4 kB / 436.3 MB, free: 1.738 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.457e-05/0.2995, allocations: 115.2 kB / 436.4 MB, free: 1.625 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2995, allocations: 0 / 436.4 MB, free: 1.625 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002286/0.2998, allocations: 8 kB / 436.4 MB, free: 1.617 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.708e-05/0.2999, allocations: 95.28 kB / 436.5 MB, free: 1.516 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001322/0.3, allocations: 23.98 kB / 436.5 MB, free: 1.492 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.3, allocations: 0 / 436.5 MB, free: 1.492 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.07e-05/0.3, allocations: 11.92 kB / 436.5 MB, free: 1.48 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003289/0.3004, allocations: 15.97 kB / 436.6 MB, free: 1.465 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003406/0.3007, allocations: 168 kB / 436.7 MB, free: 1.27 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.874e-05/0.3008, allocations: 79.27 kB / 436.8 MB, free: 1.172 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.226e-05/0.3008, allocations: 7.984 kB / 436.8 MB, free: 1.164 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.117e-05/0.3008, allocations: 11.44 kB / 436.8 MB, free: 1.152 MB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3008, allocations: 0 / 436.8 MB, free: 1.152 MB / 334.1 MB Notification: Performance of Templates: time 0.003118/0.304, allocations: 0.6779 MB / 437.5 MB, free: 0.4961 MB / 334.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/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: 4.7657699752599]