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.0009317/0.0009317, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0008965/0.0008965, allocations: 147.7 kB / 24.89 MB, free: 8.777 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.8897/0.8897, allocations: 173.4 MB / 201.5 MB, free: 8.238 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.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.082e-06/1.082e-06, allocations: 3.938 kB / 268.5 MB, free: 9.746 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.182e-05/1.29e-05, allocations: 2.312 kB / 268.5 MB, free: 9.742 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2): time 0.001991/0.002004, allocations: 1.83 MB / 270.4 MB, free: 7.918 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007585/0.002762, allocations: 0.6059 MB / 271 MB, free: 7.309 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.726e-05/0.002849, allocations: 11.88 kB / 271 MB, free: 7.297 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001328/0.002982, allocations: 17.05 kB / 271 MB, free: 7.281 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001665/0.003149, allocations: 48.14 kB / 271 MB, free: 7.234 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002757/0.003424, allocations: 124.2 kB / 271.2 MB, free: 7.113 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001527/0.003577, allocations: 145.5 kB / 271.3 MB, free: 6.973 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.899e-05/0.003666, allocations: 26.36 kB / 271.3 MB, free: 6.945 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001187/0.003785, allocations: 91.72 kB / 271.4 MB, free: 6.855 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001543/0.003939, allocations: 95.73 kB / 271.5 MB, free: 6.762 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.484e-05/0.003964, allocations: 17.81 kB / 271.5 MB, free: 6.746 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.72e-05/0.003981, allocations: 12 kB / 271.5 MB, free: 6.734 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.25e-05/0.004044, allocations: 71.8 kB / 271.6 MB, free: 6.664 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.502e-05/0.004089, allocations: 51.83 kB / 271.7 MB, free: 6.613 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001502/0.004239, allocations: 159.4 kB / 271.8 MB, free: 6.457 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.593e-06/0.00424, allocations: 0.875 kB / 271.8 MB, free: 6.457 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.004241, allocations: 0 / 271.8 MB, free: 6.457 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.175e-06/0.004244, allocations: 0.75 kB / 271.8 MB, free: 6.457 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.0004086/0.004653, allocations: 416.3 kB / 272.2 MB, free: 6.027 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.627e-05/0.004679, allocations: 12.03 kB / 272.2 MB, free: 6.016 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.788e-05/0.004727, allocations: 32.89 kB / 272.3 MB, free: 5.984 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001677/0.004895, allocations: 181.9 kB / 272.5 MB, free: 5.781 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.11e-05/0.004916, allocations: 16.36 kB / 272.5 MB, free: 5.766 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.721e-05/0.004933, allocations: 16.38 kB / 272.5 MB, free: 5.75 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004222/0.005355, allocations: 452.9 kB / 272.9 MB, free: 5.285 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.005366, allocations: 8.109 kB / 272.9 MB, free: 5.277 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.244e-05/0.005378, allocations: 4.375 kB / 272.9 MB, free: 5.273 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.497e-05/0.005403, allocations: 15.94 kB / 273 MB, free: 5.258 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.921e-05/0.005492, allocations: 66.77 kB / 273 MB, free: 5.191 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004644/0.005957, allocations: 204.6 kB / 273.2 MB, free: 4.969 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001487/0.006105, allocations: 138.5 kB / 273.4 MB, free: 4.805 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.723e-05/0.006173, allocations: 78.55 kB / 273.4 MB, free: 4.719 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.885e-05/0.006191, allocations: 4 kB / 273.4 MB, free: 4.715 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.763e-05/0.006209, allocations: 38.56 kB / 273.5 MB, free: 4.668 MB / 250.7 MB Notification: Performance of pre-optimization done (n=39): time 1.293e-06/0.00621, allocations: 0 / 273.5 MB, free: 4.668 MB / 250.7 MB Notification: Performance of matching and sorting (n=39): time 0.0002415/0.006452, allocations: 210 kB / 273.7 MB, free: 4.457 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.546e-05/0.006517, allocations: 135.8 kB / 273.8 MB, free: 4.301 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.314e-05/0.00659, allocations: 158.6 kB / 274 MB, free: 4.133 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.71e-05/0.006608, allocations: 33.7 kB / 274 MB, free: 4.094 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.66e-05/0.006634, allocations: 93.23 kB / 274.1 MB, free: 4 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.103e-05/0.006665, allocations: 43.7 kB / 274.1 MB, free: 3.957 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.068e-05/0.006706, allocations: 41.92 kB / 274.2 MB, free: 3.906 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.087e-05/0.006777, allocations: 330.8 kB / 274.5 MB, free: 3.574 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.898e-05/0.006796, allocations: 20.45 kB / 274.5 MB, free: 3.555 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.622e-05/0.006852, allocations: 104.9 kB / 274.6 MB, free: 3.41 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.655e-05/0.006949, allocations: 146.6 kB / 274.8 MB, free: 3.223 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.006952, allocations: 4 kB / 274.8 MB, free: 3.219 MB / 250.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0001187/0.00707, allocations: 145.3 kB / 274.9 MB, free: 3.07 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.021e-05/0.00708, allocations: 8 kB / 274.9 MB, free: 3.062 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.048e-06/0.007085, allocations: 0 / 274.9 MB, free: 3.062 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/0.007097, allocations: 11.94 kB / 274.9 MB, free: 3.051 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.405e-05/0.007181, allocations: 39.92 kB / 275 MB, free: 3.012 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.937e-06/0.007185, allocations: 4 kB / 275 MB, free: 3.008 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.12e-05/0.007226, allocations: 12.39 kB / 275 MB, free: 2.996 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.387e-06/0.007235, allocations: 12 kB / 275 MB, free: 2.984 MB / 250.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 8.064e-05/0.007316, allocations: 146.4 kB / 275.1 MB, free: 2.832 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001391/0.007455, allocations: 154.8 kB / 275.3 MB, free: 2.676 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.789e-05/0.007493, allocations: 34.66 kB / 275.3 MB, free: 2.637 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.007497, allocations: 7.938 kB / 275.3 MB, free: 2.629 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-06/0.007499, allocations: 0 / 275.3 MB, free: 2.629 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.401e-06/0.007504, allocations: 7.984 kB / 275.3 MB, free: 2.621 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.672e-05/0.007601, allocations: 105.6 kB / 275.4 MB, free: 2.5 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.007602, allocations: 0 / 275.4 MB, free: 2.5 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001265/0.007729, allocations: 67.91 kB / 275.5 MB, free: 2.434 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.007731, allocations: 0 / 275.5 MB, free: 2.434 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.425e-05/0.007745, allocations: 15.98 kB / 275.5 MB, free: 2.418 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.007747, allocations: 0 / 275.5 MB, free: 2.418 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.007747, allocations: 0 / 275.5 MB, free: 2.418 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.113e-05/0.007809, allocations: 156 kB / 275.7 MB, free: 2.242 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.291e-05/0.007861, allocations: 39.78 kB / 275.7 MB, free: 2.203 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.956e-05/0.007891, allocations: 19.98 kB / 275.7 MB, free: 2.184 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.548e-05/0.007946, allocations: 8 kB / 275.7 MB, free: 2.176 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.975e-05/0.007966, allocations: 3.938 kB / 275.7 MB, free: 2.172 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.332e-05/0.00798, allocations: 16.02 kB / 275.8 MB, free: 2.156 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.892e-05/0.008008, allocations: 45.06 kB / 275.8 MB, free: 2.109 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008009, allocations: 0 / 275.8 MB, free: 2.109 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001648/0.008173, allocations: 40 kB / 275.8 MB, free: 2.07 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: 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 7.38e-05/0.008247, allocations: 96.3 kB / 275.9 MB, free: 1.965 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001365/0.008384, allocations: 127.5 kB / 276.1 MB, free: 1.836 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.008387, allocations: 4 kB / 276.1 MB, free: 1.832 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 9.588e-06/0.008396, allocations: 4.859 kB / 276.1 MB, free: 1.824 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002837/0.00868, allocations: 142.4 kB / 276.2 MB, free: 1.684 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006684/0.009348, allocations: 0.501 MB / 276.7 MB, free: 1.152 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.927e-05/0.009408, allocations: 112.8 kB / 276.8 MB, free: 1.023 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.933e-05/0.009437, allocations: 22.06 kB / 276.8 MB, free: 1.004 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.987e-05/0.009517, allocations: 75.36 kB / 276.9 MB, free: 0.9297 MB / 250.7 MB Notification: Performance of SimCode: time 4.51e-07/0.009517, allocations: 0 / 276.9 MB, free: 0.9297 MB / 250.7 MB Notification: Performance of Templates: time 0.003782/0.0133, allocations: 2.668 MB / 279.6 MB, free: 14.3 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 -s gbode -gbm=radauIIA3 -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","",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.502122106961906]