Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.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.0009696/0.0009696, allocations: 78.97 kB / 21.42 MB, free: 3.078 MB / 18.57 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.001151/0.001151, allocations: 147.5 kB / 24.81 MB, free: 9.27 MB / 18.57 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 0.9727/0.9727, allocations: 173.4 MB / 201.4 MB, free: 9.223 MB / 186.7 MB " [Timeout remaining time 179] 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.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5019,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.365e-06/2.365e-06, allocations: 0 / 268.4 MB, free: 6.223 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.788e-05/3.025e-05, allocations: 2.312 kB / 268.4 MB, free: 6.219 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.002607/0.002637, allocations: 1.584 MB / 270 MB, free: 4.625 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005009/0.007646, allocations: 498.5 kB / 270.5 MB, free: 4.133 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001082/0.007755, allocations: 4 kB / 270.5 MB, free: 4.129 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.173e-05/0.007806, allocations: 3.938 kB / 270.5 MB, free: 4.125 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001446/0.007951, allocations: 11.86 kB / 270.5 MB, free: 4.113 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002656/0.008216, allocations: 51.77 kB / 270.5 MB, free: 4.062 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001014/0.008318, allocations: 47.78 kB / 270.6 MB, free: 4.016 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.216e-05/0.00841, allocations: 12.17 kB / 270.6 MB, free: 4.004 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.679e-05/0.008507, allocations: 31.91 kB / 270.6 MB, free: 3.973 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.6e-05/0.008563, allocations: 19.92 kB / 270.6 MB, free: 3.953 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.97e-05/0.008582, allocations: 4 kB / 270.7 MB, free: 3.949 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.045e-05/0.008593, allocations: 0 / 270.7 MB, free: 3.949 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.327e-05/0.008636, allocations: 15.92 kB / 270.7 MB, free: 3.934 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.121e-05/0.008657, allocations: 12 kB / 270.7 MB, free: 3.922 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001053/0.008763, allocations: 43.77 kB / 270.7 MB, free: 3.879 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.008767, allocations: 0 / 270.7 MB, free: 3.879 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.008768, allocations: 3.938 kB / 270.7 MB, free: 3.875 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.767e-06/0.008772, allocations: 0 / 270.7 MB, free: 3.875 MB / 250.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.0003729/0.009145, allocations: 408.3 kB / 271.1 MB, free: 3.441 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.009181, allocations: 8.922 kB / 271.1 MB, free: 3.434 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.434e-05/0.009216, allocations: 16.84 kB / 271.2 MB, free: 3.418 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000144/0.00936, allocations: 136.5 kB / 271.3 MB, free: 3.258 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.468e-06/0.009369, allocations: 4.375 kB / 271.3 MB, free: 3.254 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.648e-06/0.009379, allocations: 8.359 kB / 271.3 MB, free: 3.246 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001815/0.00956, allocations: 121.5 kB / 271.4 MB, free: 3.102 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-06/0.009568, allocations: 4.188 kB / 271.4 MB, free: 3.098 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.045e-06/0.009576, allocations: 4.125 kB / 271.4 MB, free: 3.094 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.009582, allocations: 4 kB / 271.4 MB, free: 3.09 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.323e-05/0.009595, allocations: 0 / 271.4 MB, free: 3.09 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003312/0.01291, allocations: 244.1 kB / 271.7 MB, free: 2.82 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.008e-05/0.01298, allocations: 58.12 kB / 271.7 MB, free: 2.738 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.107e-05/0.013, allocations: 19.38 kB / 271.7 MB, free: 2.711 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.446e-05/0.01302, allocations: 4.062 kB / 271.7 MB, free: 2.707 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.485e-05/0.01305, allocations: 41.33 kB / 271.8 MB, free: 2.656 MB / 250.7 MB Notification: Performance of pre-optimization done (n=2): time 1.333e-06/0.01305, allocations: 7.938 kB / 271.8 MB, free: 2.648 MB / 250.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001443/0.01319, allocations: 49.58 kB / 271.8 MB, free: 2.594 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.302e-05/0.01324, allocations: 81.05 kB / 271.9 MB, free: 2.496 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001109/0.01335, allocations: 201.8 kB / 272.1 MB, free: 2.281 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.809e-06/0.01336, allocations: 25.7 kB / 272.1 MB, free: 2.25 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.939e-05/0.01341, allocations: 134.8 kB / 272.3 MB, free: 2.113 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.732e-05/0.01342, allocations: 7.953 kB / 272.3 MB, free: 2.105 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.218e-05/0.01346, allocations: 15.38 kB / 272.3 MB, free: 2.082 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.01358, allocations: 0.4962 MB / 272.8 MB, free: 1.574 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.198e-05/0.01359, allocations: 256 / 272.8 MB, free: 1.574 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.075e-06/0.0136, allocations: 4 kB / 272.8 MB, free: 1.57 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.477e-05/0.01362, allocations: 11.69 kB / 272.8 MB, free: 1.555 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.01363, allocations: 0 / 272.8 MB, free: 1.555 MB / 250.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.181e-05/0.01369, allocations: 37.59 kB / 272.8 MB, free: 1.512 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.0137, allocations: 15.92 kB / 272.9 MB, free: 1.496 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.01371, allocations: 0 / 272.9 MB, free: 1.496 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.198e-05/0.01372, allocations: 0 / 272.9 MB, free: 1.496 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.333e-05/0.01379, allocations: 4 kB / 272.9 MB, free: 1.492 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.524e-06/0.01379, allocations: 0 / 272.9 MB, free: 1.492 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.991e-05/0.01381, allocations: 4.094 kB / 272.9 MB, free: 1.488 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.2e-06/0.01382, allocations: 0 / 272.9 MB, free: 1.488 MB / 250.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 6.599e-05/0.01389, allocations: 156.6 kB / 273 MB, free: 1.324 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.61e-05/0.01393, allocations: 37.64 kB / 273.1 MB, free: 1.281 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.303e-05/0.01397, allocations: 15.75 kB / 273.1 MB, free: 1.266 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.01397, allocations: 4 kB / 273.1 MB, free: 1.262 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-06/0.01397, allocations: 0 / 273.1 MB, free: 1.262 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.01397, allocations: 4 kB / 273.1 MB, free: 1.258 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001225/0.0141, allocations: 105.2 kB / 273.2 MB, free: 1.129 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.0141, allocations: 3.938 kB / 273.2 MB, free: 1.125 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.283e-05/0.01413, allocations: 8.031 kB / 273.2 MB, free: 1.117 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.01413, allocations: 0 / 273.2 MB, free: 1.117 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.29e-06/0.01414, allocations: 3.984 kB / 273.2 MB, free: 1.113 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.51e-07/0.01414, allocations: 0 / 273.2 MB, free: 1.113 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.01414, allocations: 7.938 kB / 273.2 MB, free: 1.105 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.786e-05/0.01424, allocations: 191.6 kB / 273.4 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.989e-05/0.01427, allocations: 11.94 kB / 273.4 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.799e-06/0.01428, allocations: 7.938 kB / 273.4 MB, free: 0.875 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.854e-05/0.01433, allocations: 0 / 273.4 MB, free: 0.875 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.324e-05/0.01435, allocations: 7.969 kB / 273.4 MB, free: 0.8672 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.062e-06/0.01436, allocations: 11.98 kB / 273.4 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.37e-05/0.01441, allocations: 146.2 kB / 273.6 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01441, allocations: 0 / 273.6 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001964/0.01461, allocations: 4 kB / 273.6 MB, free: 0.7109 MB / 250.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 9.374e-05/0.0147, allocations: 95.25 kB / 273.7 MB, free: 0.6094 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 6.345e-05/0.01477, allocations: 15.67 kB / 273.7 MB, free: 0.5898 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.01477, allocations: 4 kB / 273.7 MB, free: 0.5859 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.426e-05/0.01478, allocations: 7.75 kB / 273.7 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003076/0.01509, allocations: 24.3 kB / 273.7 MB, free: 0.5469 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003499/0.01859, allocations: 177.2 kB / 273.9 MB, free: 352 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.57e-05/0.01864, allocations: 55.36 kB / 274 MB, free: 276 kB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.957e-05/0.01868, allocations: 7.969 kB / 274 MB, free: 268 kB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.736e-05/0.01874, allocations: 78.2 kB / 274 MB, free: 188 kB / 250.7 MB Notification: Performance of SimCode: time 1.102e-06/0.01874, allocations: 0 / 274 MB, free: 188 kB / 250.7 MB Notification: Performance of Templates: time 0.002614/0.02136, allocations: 0.6906 MB / 274.7 MB, free: 15.51 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.70680842269212]