Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.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.00109/0.00109, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001125/0.001125, allocations: 170.2 kB / 24.82 MB, free: 9.262 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 1.007/1.007, allocations: 177.1 MB / 205.3 MB, free: 5.473 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.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5019,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5019,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 273.4 MB, free: 1.27 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.777e-05/2.934e-05, allocations: 8.844 kB / 273.4 MB, free: 1.262 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.003214/0.003243, allocations: 1.634 MB / 275 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001103/0.004347, allocations: 0.5375 MB / 275.6 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.591e-05/0.004442, allocations: 3.938 kB / 275.6 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 4.924e-05/0.004492, allocations: 7.938 kB / 275.6 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000132/0.004624, allocations: 11.86 kB / 275.6 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003323/0.004956, allocations: 67.62 kB / 275.7 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001137/0.00507, allocations: 47.84 kB / 275.7 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.434e-05/0.005154, allocations: 12.17 kB / 275.7 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001546/0.005309, allocations: 39.84 kB / 275.8 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.213e-05/0.005361, allocations: 19.91 kB / 275.8 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.76e-05/0.005378, allocations: 4 kB / 275.8 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.755e-05/0.005416, allocations: 8 kB / 275.8 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.007e-05/0.005456, allocations: 15.92 kB / 275.8 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.208e-05/0.005478, allocations: 11.94 kB / 275.8 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001403/0.005618, allocations: 47.83 kB / 275.9 MB, free: 14.78 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.00562, allocations: 0 / 275.9 MB, free: 14.78 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.005622, allocations: 0 / 275.9 MB, free: 14.78 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.797e-06/0.005626, allocations: 0 / 275.9 MB, free: 14.78 MB / 266.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.0004319/0.006057, allocations: 408.2 kB / 276.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.006099, allocations: 8.031 kB / 276.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001378/0.006237, allocations: 24.88 kB / 276.3 MB, free: 14.31 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001842/0.006421, allocations: 156.9 kB / 276.5 MB, free: 14.13 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.364e-05/0.006435, allocations: 8.375 kB / 276.5 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.129e-05/0.006446, allocations: 4.375 kB / 276.5 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002124/0.006658, allocations: 137 kB / 276.6 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.006666, allocations: 4 kB / 276.6 MB, free: 13.95 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.273e-06/0.006673, allocations: 0 / 276.6 MB, free: 13.95 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.034e-06/0.00668, allocations: 0 / 276.6 MB, free: 13.95 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.495e-05/0.006705, allocations: 7.938 kB / 276.6 MB, free: 13.95 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000261/0.006966, allocations: 255.8 kB / 276.9 MB, free: 13.66 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.394e-05/0.00705, allocations: 89.17 kB / 276.9 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.503e-05/0.007085, allocations: 31.17 kB / 277 MB, free: 13.49 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.327e-05/0.007108, allocations: 11.92 kB / 277 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.902e-05/0.007137, allocations: 49.33 kB / 277 MB, free: 13.42 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 1.383e-06/0.007139, allocations: 0 / 277 MB, free: 13.42 MB / 266.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001516/0.00729, allocations: 53.58 kB / 277.1 MB, free: 13.36 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.766e-05/0.007348, allocations: 114.8 kB / 277.2 MB, free: 13.23 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001223/0.00747, allocations: 197.2 kB / 277.4 MB, free: 13.02 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.564e-05/0.007486, allocations: 29.7 kB / 277.4 MB, free: 12.98 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.615e-05/0.007542, allocations: 130.9 kB / 277.6 MB, free: 12.85 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.769e-05/0.00756, allocations: 8 kB / 277.6 MB, free: 12.84 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.475e-05/0.007594, allocations: 19.7 kB / 277.6 MB, free: 12.82 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.007742, allocations: 0.4962 MB / 278.1 MB, free: 12.31 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.099e-05/0.007753, allocations: 0 / 278.1 MB, free: 12.31 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.275e-06/0.007761, allocations: 0 / 278.1 MB, free: 12.31 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.858e-05/0.00779, allocations: 11.69 kB / 278.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.007793, allocations: 3.938 kB / 278.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.002e-05/0.007863, allocations: 41.62 kB / 278.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.007875, allocations: 4 kB / 278.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.007879, allocations: 0 / 278.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.007893, allocations: 0 / 278.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.625e-05/0.007949, allocations: 8.094 kB / 278.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.936e-06/0.007952, allocations: 0 / 278.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.179e-05/0.007974, allocations: 3.938 kB / 278.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.638e-06/0.007978, allocations: 0 / 278.1 MB, free: 12.23 MB / 266.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.178e-05/0.00806, allocations: 168.5 kB / 278.3 MB, free: 12.05 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.16e-05/0.008132, allocations: 45.59 kB / 278.4 MB, free: 12 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.397e-05/0.008166, allocations: 15.95 kB / 278.4 MB, free: 11.99 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.008168, allocations: 0 / 278.4 MB, free: 11.99 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.994e-06/0.00817, allocations: 0 / 278.4 MB, free: 11.99 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.008175, allocations: 8.062 kB / 278.4 MB, free: 11.98 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001451/0.00832, allocations: 113.1 kB / 278.5 MB, free: 11.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.008322, allocations: 0 / 278.5 MB, free: 11.84 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.716e-05/0.008379, allocations: 12 kB / 278.5 MB, free: 11.83 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.008383, allocations: 3.938 kB / 278.5 MB, free: 11.83 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.624e-06/0.008391, allocations: 4 kB / 278.5 MB, free: 11.82 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.008394, allocations: 4 kB / 278.5 MB, free: 11.82 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.008395, allocations: 0 / 278.5 MB, free: 11.82 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000125/0.00852, allocations: 203.2 kB / 278.7 MB, free: 11.59 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.449e-05/0.008565, allocations: 23.83 kB / 278.7 MB, free: 11.57 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.413e-05/0.008579, allocations: 8.031 kB / 278.7 MB, free: 11.56 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.662e-05/0.008646, allocations: 0 / 278.7 MB, free: 11.56 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.176e-05/0.008667, allocations: 0 / 278.7 MB, free: 11.56 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.093e-06/0.008674, allocations: 4 kB / 278.7 MB, free: 11.56 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.885e-05/0.008743, allocations: 147.1 kB / 278.9 MB, free: 11.41 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.008743, allocations: 0 / 278.9 MB, free: 11.41 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002419/0.008985, allocations: 4 kB / 278.9 MB, free: 11.41 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (4): * Single equations (assignments): 4 * 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.125e-05/0.009067, allocations: 95.25 kB / 279 MB, free: 11.3 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 7.319e-05/0.00914, allocations: 23.61 kB / 279 MB, free: 11.28 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.373e-06/0.009141, allocations: 4.062 kB / 279 MB, free: 11.27 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.453e-05/0.009156, allocations: 7.688 kB / 279 MB, free: 11.26 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003392/0.009495, allocations: 28.8 kB / 279.1 MB, free: 11.23 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004827/0.009978, allocations: 192.3 kB / 279.2 MB, free: 11.01 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.419e-05/0.01002, allocations: 59.34 kB / 279.3 MB, free: 10.93 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.755e-05/0.01005, allocations: 4.25 kB / 279.3 MB, free: 10.93 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.915e-05/0.01012, allocations: 82.19 kB / 279.4 MB, free: 10.84 MB / 266.7 MB Notification: Performance of SimCode: time 7.01e-07/0.01012, allocations: 0 / 279.4 MB, free: 10.84 MB / 266.7 MB Notification: Performance of Templates: time 0.002751/0.01287, allocations: 0.7559 MB / 280.1 MB, free: 10.11 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/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.8183772629126906]