Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.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.001861/0.001861, allocations: 99.86 kB / 20.96 MB, free: 3.457 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.001901/0.001901, allocations: 145.1 kB / 24.26 MB, free: 168 kB / 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.505/1.505, allocations: 173.4 MB / 200.8 MB, free: 9.316 MB / 186.7 MB " [Timeout remaining time 178] 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.UpSample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|sample1.y|upSample.y|superSampleIpo.y|FIR1.y|FIR2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|sample1.y|upSample.y|superSampleIpo.y|FIR1.y|FIR2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 267.3 MB, free: 6.723 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.589e-05/3.747e-05, allocations: 2.312 kB / 267.3 MB, free: 6.719 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2): time 0.003414/0.003451, allocations: 1.748 MB / 269.1 MB, free: 4.957 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001342/0.004793, allocations: 0.6073 MB / 269.7 MB, free: 4.344 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001026/0.004896, allocations: 7.938 kB / 269.7 MB, free: 4.336 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001794/0.005075, allocations: 19.8 kB / 269.7 MB, free: 4.316 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002281/0.005303, allocations: 39.66 kB / 269.8 MB, free: 4.277 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004473/0.005751, allocations: 127.6 kB / 269.9 MB, free: 4.152 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002346/0.005985, allocations: 143.6 kB / 270 MB, free: 4.012 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.0061, allocations: 25.8 kB / 270 MB, free: 3.984 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001849/0.006285, allocations: 99.64 kB / 270.1 MB, free: 3.887 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002265/0.006511, allocations: 87.81 kB / 270.2 MB, free: 3.801 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.476e-05/0.006556, allocations: 12 kB / 270.2 MB, free: 3.789 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.602e-05/0.006592, allocations: 16 kB / 270.3 MB, free: 3.773 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000115/0.006707, allocations: 63.81 kB / 270.3 MB, free: 3.711 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.804e-05/0.006805, allocations: 55.81 kB / 270.4 MB, free: 3.656 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003331/0.007138, allocations: 219.2 kB / 270.6 MB, free: 3.441 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.007141, allocations: 0 / 270.6 MB, free: 3.441 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.81e-07/0.007142, allocations: 0 / 270.6 MB, free: 3.441 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.581e-06/0.007148, allocations: 4 kB / 270.6 MB, free: 3.438 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0009567/0.008105, allocations: 0.5499 MB / 271.1 MB, free: 2.852 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.008146, allocations: 12.03 kB / 271.2 MB, free: 2.84 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.747e-05/0.008244, allocations: 36.8 kB / 271.2 MB, free: 2.805 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000349/0.008593, allocations: 196.2 kB / 271.4 MB, free: 2.586 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.036e-05/0.008633, allocations: 20.38 kB / 271.4 MB, free: 2.566 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.312e-05/0.008666, allocations: 20.31 kB / 271.4 MB, free: 2.547 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001076/0.009743, allocations: 0.5089 MB / 271.9 MB, free: 2.012 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.009755, allocations: 192 / 271.9 MB, free: 2.012 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.091e-05/0.009776, allocations: 8.375 kB / 271.9 MB, free: 2.004 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.635e-05/0.009812, allocations: 15.94 kB / 272 MB, free: 1.988 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003454/0.01016, allocations: 127.8 kB / 272.1 MB, free: 1.863 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005242/0.01068, allocations: 339 kB / 272.4 MB, free: 1.488 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004589/0.01114, allocations: 205.1 kB / 272.6 MB, free: 1.25 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002521/0.01139, allocations: 119.1 kB / 272.7 MB, free: 1.121 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.425e-05/0.01144, allocations: 11.94 kB / 272.7 MB, free: 1.109 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.483e-05/0.01148, allocations: 49.31 kB / 272.8 MB, free: 1.051 MB / 250.7 MB Notification: Performance of pre-optimization done (n=39): time 1.403e-06/0.01148, allocations: 0 / 272.8 MB, free: 1.051 MB / 250.7 MB Notification: Performance of matching and sorting (n=39): time 0.0008107/0.01229, allocations: 318 kB / 273.1 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001398/0.01243, allocations: 142.7 kB / 273.2 MB, free: 0.5703 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002493/0.01268, allocations: 246.8 kB / 273.5 MB, free: 320 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.379e-05/0.01272, allocations: 29.7 kB / 273.5 MB, free: 284 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.01283, allocations: 151.9 kB / 273.7 MB, free: 128 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.475e-05/0.01288, allocations: 43.73 kB / 273.7 MB, free: 84 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.67e-05/0.01297, allocations: 55.59 kB / 273.8 MB, free: 16 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0003153/0.01328, allocations: 0.504 MB / 274.3 MB, free: 15.5 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.994e-05/0.01337, allocations: 36.44 kB / 274.3 MB, free: 15.46 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002142/0.01359, allocations: 160.5 kB / 274.5 MB, free: 15.25 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002961/0.01388, allocations: 211.4 kB / 274.7 MB, free: 14.98 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.01389, allocations: 4 kB / 274.7 MB, free: 14.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.000354/0.01424, allocations: 197.2 kB / 274.9 MB, free: 14.78 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.01426, allocations: 12.38 kB / 274.9 MB, free: 14.77 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.01427, allocations: 8 kB / 274.9 MB, free: 14.76 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.912e-05/0.01429, allocations: 4 kB / 274.9 MB, free: 14.76 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001507/0.01444, allocations: 39.92 kB / 274.9 MB, free: 14.72 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.313e-05/0.01445, allocations: 7.938 kB / 274.9 MB, free: 14.71 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.308e-05/0.01453, allocations: 7.953 kB / 274.9 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.036e-05/0.01455, allocations: 12 kB / 274.9 MB, free: 14.69 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 12 ($CLKPRE.superSampleIpo.ticks,superSampleIpo.ticks,$CLKPRE.FIR1.first,FIR1.first,$CLKPRE.FIR2.first,FIR2.first,$CLKPRE.upSample.b_super,upSample.b_super,$CLKPRE.superSampleIpo.first,superSampleIpo.first,$CLKPRE.upSample.b,upSample.b) * Number of discrete states: 0 () * Number of clocked states: 13 (superSampleIpo.ticks,FIR1.first,FIR1.u_buffer[2],FIR1.u_buffer[1],FIR2.first,FIR2.u_buffer[4],FIR2.u_buffer[3],FIR2.u_buffer[2],FIR2.u_buffer[1],upSample.b_super,superSampleIpo.first,superSampleIpo.uu,upSample.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 27 * 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 0.0001891/0.01474, allocations: 196.4 kB / 275.1 MB, free: 14.49 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004939/0.01524, allocations: 245.5 kB / 275.4 MB, free: 14.24 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.564e-05/0.01533, allocations: 34.64 kB / 275.4 MB, free: 14.21 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.01534, allocations: 8 kB / 275.4 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.01534, allocations: 4 kB / 275.4 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.01535, allocations: 0 / 275.4 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002572/0.01561, allocations: 176.5 kB / 275.6 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.01561, allocations: 0 / 275.6 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002657/0.01587, allocations: 63.91 kB / 275.7 MB, free: 13.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.202e-06/0.01588, allocations: 4 kB / 275.7 MB, free: 13.92 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.67e-05/0.01591, allocations: 7.938 kB / 275.7 MB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.133e-06/0.01591, allocations: 4 kB / 275.7 MB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.01592, allocations: 3.984 kB / 275.7 MB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000662/0.01658, allocations: 452.1 kB / 276.1 MB, free: 13.44 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000125/0.0167, allocations: 47.77 kB / 276.2 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.856e-05/0.01676, allocations: 23.92 kB / 276.2 MB, free: 13.37 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000133/0.0169, allocations: 8 kB / 276.2 MB, free: 13.36 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.814e-05/0.01693, allocations: 0 / 276.2 MB, free: 13.36 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.043e-05/0.01696, allocations: 15.98 kB / 276.2 MB, free: 13.34 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001431/0.01711, allocations: 167.2 kB / 276.4 MB, free: 13.18 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01711, allocations: 0 / 276.4 MB, free: 13.18 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003172/0.01742, allocations: 44 kB / 276.4 MB, free: 13.14 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: 7 (upSample.b_super,FIR2.first,FIR1.first,superSampleIpo.usedFactor,superSampleIpo.ticks,upSample.b,superSampleIpo.first) * Number of discrete states: 0 () * Number of clocked states: 13 (upSample.b_super,FIR2.u_buffer[1],FIR2.u_buffer[2],FIR2.u_buffer[3],FIR2.u_buffer[4],FIR2.first,FIR1.u_buffer[1],FIR1.u_buffer[2],FIR1.first,superSampleIpo.ticks,upSample.b,superSampleIpo.uu,superSampleIpo.first) * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 39 * 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.0001661/0.01759, allocations: 122.5 kB / 276.5 MB, free: 13.01 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004096/0.018, allocations: 175.4 kB / 276.7 MB, free: 12.83 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.018, allocations: 0 / 276.7 MB, free: 12.83 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.597e-05/0.01805, allocations: 19.67 kB / 276.7 MB, free: 12.81 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006784/0.01873, allocations: 164.5 kB / 276.9 MB, free: 12.65 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001364/0.02009, allocations: 0.5049 MB / 277.4 MB, free: 12.11 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002178/0.02031, allocations: 165.7 kB / 277.6 MB, free: 11.93 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.995e-05/0.02036, allocations: 17.94 kB / 277.6 MB, free: 11.91 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.456e-05/0.02043, allocations: 24.48 kB / 277.6 MB, free: 11.89 MB / 266.7 MB Notification: Performance of SimCode: time 7.51e-07/0.02043, allocations: 4 kB / 277.6 MB, free: 11.88 MB / 266.7 MB Notification: Performance of Templates: time 0.007015/0.02745, allocations: 2.577 MB / 280.2 MB, free: 9.332 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/UpSample2/UpSample2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.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.471958075999282]