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.00102/0.00102, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001239/0.001239, allocations: 165.5 kB / 24.99 MB, free: 8.871 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.07/1.07, allocations: 177.1 MB / 205.3 MB, free: 5.633 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.383e-06/1.383e-06, allocations: 0 / 273.1 MB, free: 1.84 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.498e-05/1.636e-05, allocations: 2.312 kB / 273.1 MB, free: 1.836 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.001894/0.00191, allocations: 1.634 MB / 274.7 MB, free: 196 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007131/0.002623, allocations: 0.5414 MB / 275.2 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.096e-05/0.002704, allocations: 4 kB / 275.3 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 4.392e-05/0.002748, allocations: 7.875 kB / 275.3 MB, free: 15.63 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001254/0.002873, allocations: 15.84 kB / 275.3 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002496/0.003123, allocations: 63.64 kB / 275.3 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 9.405e-05/0.003217, allocations: 51.83 kB / 275.4 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.601e-05/0.003303, allocations: 8.188 kB / 275.4 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001091/0.003412, allocations: 39.91 kB / 275.4 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.391e-05/0.003456, allocations: 15.91 kB / 275.4 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.338e-05/0.003469, allocations: 4 kB / 275.5 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.968e-05/0.003509, allocations: 12 kB / 275.5 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.168e-05/0.003551, allocations: 15.92 kB / 275.5 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.203e-05/0.003573, allocations: 7.938 kB / 275.5 MB, free: 15.4 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001196/0.003692, allocations: 51.77 kB / 275.5 MB, free: 15.35 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.185e-06/0.003695, allocations: 0 / 275.5 MB, free: 15.35 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.42e-07/0.003695, allocations: 0 / 275.5 MB, free: 15.35 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.027e-06/0.0037, allocations: 0 / 275.5 MB, free: 15.35 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.0003648/0.004064, allocations: 416.2 kB / 275.9 MB, free: 14.91 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.223e-05/0.004097, allocations: 8.031 kB / 276 MB, free: 14.9 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001065/0.004203, allocations: 20.83 kB / 276 MB, free: 14.88 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001554/0.004358, allocations: 149 kB / 276.1 MB, free: 14.71 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.686e-06/0.004367, allocations: 8.375 kB / 276.1 MB, free: 14.7 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.328e-06/0.004377, allocations: 4.375 kB / 276.1 MB, free: 14.7 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002287/0.004605, allocations: 141 kB / 276.3 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.262e-06/0.004611, allocations: 0 / 276.3 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.057e-06/0.004621, allocations: 4 kB / 276.3 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.004627, allocations: 0 / 276.3 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.367e-05/0.00465, allocations: 7.984 kB / 276.3 MB, free: 14.52 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002466/0.004897, allocations: 283.1 kB / 276.6 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.093e-05/0.004968, allocations: 89.19 kB / 276.6 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.331e-05/0.005001, allocations: 35.11 kB / 276.7 MB, free: 14.03 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.887e-05/0.00502, allocations: 8 kB / 276.7 MB, free: 14.02 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.088e-05/0.005041, allocations: 33.39 kB / 276.7 MB, free: 13.98 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 7.41e-07/0.005042, allocations: 0 / 276.7 MB, free: 13.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001509/0.005193, allocations: 65.52 kB / 276.8 MB, free: 13.91 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.437e-05/0.005257, allocations: 110.8 kB / 276.9 MB, free: 13.77 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.978e-05/0.005357, allocations: 200.9 kB / 277.1 MB, free: 13.56 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.428e-06/0.005366, allocations: 25.7 kB / 277.1 MB, free: 13.53 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.851e-05/0.005415, allocations: 134.9 kB / 277.2 MB, free: 13.39 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.436e-05/0.005429, allocations: 4.359 kB / 277.2 MB, free: 13.39 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.847e-05/0.005458, allocations: 31.33 kB / 277.3 MB, free: 13.35 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.005572, allocations: 0.4883 MB / 277.8 MB, free: 12.85 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.799e-06/0.005582, allocations: 0 / 277.8 MB, free: 12.85 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.935e-06/0.00559, allocations: 4 kB / 277.8 MB, free: 12.85 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.249e-05/0.005612, allocations: 19.62 kB / 277.8 MB, free: 12.82 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.005614, allocations: 0 / 277.8 MB, free: 12.82 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.477e-05/0.005659, allocations: 37.69 kB / 277.8 MB, free: 12.78 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.06e-05/0.00567, allocations: 7.938 kB / 277.8 MB, free: 12.77 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.005674, allocations: 0 / 277.8 MB, free: 12.77 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.005687, allocations: 8.094 kB / 277.8 MB, free: 12.77 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.14e-05/0.005739, allocations: 0 / 277.8 MB, free: 12.77 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.959e-06/0.005744, allocations: 0 / 277.8 MB, free: 12.77 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.531e-05/0.005759, allocations: 4 kB / 277.8 MB, free: 12.76 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.799e-06/0.005764, allocations: 0 / 277.8 MB, free: 12.76 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 6.331e-05/0.005827, allocations: 160.5 kB / 278 MB, free: 12.59 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.725e-05/0.005874, allocations: 53.59 kB / 278.1 MB, free: 12.54 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.884e-05/0.005903, allocations: 11.95 kB / 278.1 MB, free: 12.53 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.005907, allocations: 7.984 kB / 278.1 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.005911, allocations: 4.062 kB / 278.1 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.005913, allocations: 0 / 278.1 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001047/0.006018, allocations: 136.5 kB / 278.2 MB, free: 12.35 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.006019, allocations: 0 / 278.2 MB, free: 12.35 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.89e-05/0.006048, allocations: 11.98 kB / 278.2 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.006049, allocations: 0 / 278.2 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.242e-06/0.006056, allocations: 0 / 278.2 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/0.00606, allocations: 7.938 kB / 278.2 MB, free: 12.33 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.00606, allocations: 0 / 278.2 MB, free: 12.33 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001093/0.00617, allocations: 219.2 kB / 278.4 MB, free: 12.09 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.54e-05/0.006195, allocations: 19.88 kB / 278.5 MB, free: 12.07 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.203e-05/0.006207, allocations: 8 kB / 278.5 MB, free: 12.06 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.129e-05/0.006238, allocations: 0 / 278.5 MB, free: 12.06 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.114e-05/0.00627, allocations: 7.984 kB / 278.5 MB, free: 12.05 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.785e-06/0.006272, allocations: 0 / 278.5 MB, free: 12.05 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.821e-05/0.006331, allocations: 147.2 kB / 278.6 MB, free: 11.91 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.006331, allocations: 0 / 278.6 MB, free: 11.91 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000137/0.006468, allocations: 4 kB / 278.6 MB, free: 11.9 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 6.732e-05/0.006535, allocations: 106.5 kB / 278.7 MB, free: 11.79 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 7.246e-05/0.006607, allocations: 19.69 kB / 278.8 MB, free: 11.77 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.502e-06/0.006609, allocations: 4 kB / 278.8 MB, free: 11.76 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.204e-05/0.006621, allocations: 7.688 kB / 278.8 MB, free: 11.75 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002561/0.006877, allocations: 32.73 kB / 278.8 MB, free: 11.71 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004305/0.007308, allocations: 184.4 kB / 279 MB, free: 11.5 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.188e-05/0.007349, allocations: 59.34 kB / 279 MB, free: 11.42 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.748e-05/0.007377, allocations: 20.23 kB / 279.1 MB, free: 11.4 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.448e-05/0.007401, allocations: 8.5 kB / 279.1 MB, free: 11.39 MB / 266.7 MB Notification: Performance of SimCode: time 7.01e-07/0.007402, allocations: 0 / 279.1 MB, free: 11.39 MB / 266.7 MB Notification: Performance of Templates: time 0.002104/0.009506, allocations: 0.6936 MB / 279.8 MB, free: 10.71 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: 3.081170273013413]