Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.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.001164/0.001164, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.001217/0.001217, allocations: 143.1 kB / 24.97 MB, free: 8.781 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 1.088/1.088, allocations: 173.3 MB / 201.5 MB, free: 9.34 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.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5019,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.455e-06/2.455e-06, allocations: 0 / 268.1 MB, free: 6.734 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.692e-05/3.938e-05, allocations: 10.19 kB / 268.1 MB, free: 6.723 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.003444/0.003483, allocations: 1.619 MB / 269.7 MB, free: 5.094 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009688/0.004452, allocations: 486.5 kB / 270.2 MB, free: 4.613 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001019/0.004554, allocations: 3.938 kB / 270.2 MB, free: 4.609 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 6.395e-05/0.004618, allocations: 7.922 kB / 270.2 MB, free: 4.602 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001508/0.004769, allocations: 11.88 kB / 270.2 MB, free: 4.59 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002779/0.005047, allocations: 55.75 kB / 270.3 MB, free: 4.535 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001226/0.005169, allocations: 51.78 kB / 270.3 MB, free: 4.484 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.005285, allocations: 8.188 kB / 270.3 MB, free: 4.477 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001143/0.0054, allocations: 31.89 kB / 270.3 MB, free: 4.445 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.483e-05/0.005454, allocations: 15.92 kB / 270.4 MB, free: 4.43 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.203e-05/0.005476, allocations: 4 kB / 270.4 MB, free: 4.426 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.247e-05/0.005489, allocations: 4 kB / 270.4 MB, free: 4.422 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.147e-05/0.00554, allocations: 11.94 kB / 270.4 MB, free: 4.41 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.408e-05/0.005574, allocations: 15.98 kB / 270.4 MB, free: 4.395 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001408/0.005715, allocations: 43.77 kB / 270.4 MB, free: 4.352 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.005719, allocations: 4 kB / 270.4 MB, free: 4.348 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.005721, allocations: 0 / 270.4 MB, free: 4.348 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.683e-06/0.005727, allocations: 0 / 270.4 MB, free: 4.348 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.0005198/0.006247, allocations: 396.3 kB / 270.8 MB, free: 3.926 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.306e-05/0.0063, allocations: 15.97 kB / 270.8 MB, free: 3.91 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.504e-05/0.006355, allocations: 12.84 kB / 270.9 MB, free: 3.898 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002356/0.006591, allocations: 148.5 kB / 271 MB, free: 3.727 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.288e-05/0.006604, allocations: 8.375 kB / 271 MB, free: 3.719 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.153e-05/0.006615, allocations: 4.375 kB / 271 MB, free: 3.715 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003152/0.00693, allocations: 129.3 kB / 271.1 MB, free: 3.559 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.717e-06/0.006939, allocations: 192 / 271.1 MB, free: 3.559 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.23e-05/0.006951, allocations: 4.125 kB / 271.1 MB, free: 3.555 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.08e-05/0.006962, allocations: 4 kB / 271.2 MB, free: 3.551 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.663e-05/0.006999, allocations: 7.938 kB / 271.2 MB, free: 3.543 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003651/0.007364, allocations: 279.1 kB / 271.4 MB, free: 3.227 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001212/0.007485, allocations: 101.2 kB / 271.5 MB, free: 3.09 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.299e-05/0.007538, allocations: 35.12 kB / 271.6 MB, free: 3.043 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.276e-05/0.007561, allocations: 3.938 kB / 271.6 MB, free: 3.039 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.192e-05/0.007593, allocations: 41.33 kB / 271.6 MB, free: 2.988 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 2.054e-06/0.007595, allocations: 0 / 271.6 MB, free: 2.988 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002281/0.007823, allocations: 65.56 kB / 271.7 MB, free: 2.918 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.547e-05/0.007898, allocations: 114.8 kB / 271.8 MB, free: 2.781 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001552/0.008054, allocations: 189.5 kB / 272 MB, free: 2.582 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.833e-05/0.008072, allocations: 37.7 kB / 272 MB, free: 2.539 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.583e-05/0.008138, allocations: 134.9 kB / 272.1 MB, free: 2.402 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.794e-05/0.008156, allocations: 3.953 kB / 272.1 MB, free: 2.398 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.881e-05/0.008194, allocations: 19.38 kB / 272.2 MB, free: 2.371 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.008353, allocations: 496.1 kB / 272.6 MB, free: 1.875 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.857e-05/0.008371, allocations: 4 kB / 272.6 MB, free: 1.871 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.096e-05/0.008382, allocations: 0 / 272.6 MB, free: 1.871 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.812e-05/0.00842, allocations: 15.67 kB / 272.7 MB, free: 1.852 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.008423, allocations: 0 / 272.7 MB, free: 1.852 MB / 250.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.765e-05/0.00851, allocations: 49.59 kB / 272.7 MB, free: 1.797 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.00853, allocations: 8 kB / 272.7 MB, free: 1.789 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.008536, allocations: 0 / 272.7 MB, free: 1.789 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/0.008553, allocations: 0 / 272.7 MB, free: 1.789 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.84e-05/0.008651, allocations: 4 kB / 272.7 MB, free: 1.785 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.00866, allocations: 3.984 kB / 272.7 MB, free: 1.781 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.529e-05/0.008685, allocations: 0 / 272.7 MB, free: 1.781 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.813e-06/0.008692, allocations: 0 / 272.7 MB, free: 1.781 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 9.581e-05/0.008788, allocations: 156.6 kB / 272.9 MB, free: 1.617 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.283e-05/0.00888, allocations: 57.58 kB / 272.9 MB, free: 1.555 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.967e-05/0.00892, allocations: 20 kB / 273 MB, free: 1.531 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.008923, allocations: 0 / 273 MB, free: 1.531 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.008928, allocations: 0 / 273 MB, free: 1.531 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.008934, allocations: 4 kB / 273 MB, free: 1.527 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001631/0.009097, allocations: 128.6 kB / 273.1 MB, free: 1.367 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.009099, allocations: 0 / 273.1 MB, free: 1.367 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.856e-05/0.009168, allocations: 8 kB / 273.1 MB, free: 1.359 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.009171, allocations: 0 / 273.1 MB, free: 1.359 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.182e-05/0.009183, allocations: 7.938 kB / 273.1 MB, free: 1.352 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.009185, allocations: 3.938 kB / 273.1 MB, free: 1.348 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.009186, allocations: 4 kB / 273.1 MB, free: 1.344 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001725/0.009359, allocations: 223.2 kB / 273.3 MB, free: 1.098 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.467e-05/0.009403, allocations: 15.95 kB / 273.3 MB, free: 1.082 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.01e-05/0.009423, allocations: 7.922 kB / 273.4 MB, free: 1.074 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.165e-05/0.009495, allocations: 0 / 273.4 MB, free: 1.074 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.458e-05/0.00953, allocations: 4 kB / 273.4 MB, free: 1.07 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.552e-06/0.009536, allocations: 0 / 273.4 MB, free: 1.07 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.583e-05/0.009622, allocations: 147.2 kB / 273.5 MB, free: 0.9258 MB / 250.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.009622, allocations: 0 / 273.5 MB, free: 0.9258 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002601/0.009882, allocations: 4 kB / 273.5 MB, free: 0.9219 MB / 250.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 0.0001282/0.01001, allocations: 103.2 kB / 273.6 MB, free: 0.8125 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001104/0.01012, allocations: 15.62 kB / 273.6 MB, free: 0.793 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.01012, allocations: 4 kB / 273.6 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 2.131e-05/0.01014, allocations: 11.69 kB / 273.6 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004278/0.01057, allocations: 28.83 kB / 273.7 MB, free: 0.7422 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006854/0.01126, allocations: 204.5 kB / 273.9 MB, free: 0.5078 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.194e-05/0.01131, allocations: 63.34 kB / 273.9 MB, free: 436 kB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.168e-05/0.01134, allocations: 0 / 273.9 MB, free: 436 kB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.151e-05/0.01138, allocations: 16.5 kB / 273.9 MB, free: 420 kB / 250.7 MB Notification: Performance of SimCode: time 8.12e-07/0.01138, allocations: 0 / 273.9 MB, free: 420 kB / 250.7 MB Notification: Performance of Templates: time 0.003002/0.01438, allocations: 0.6921 MB / 274.6 MB, free: 15.73 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.7939129408914596]