Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.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.0009773/0.0009773, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.001104/0.001104, allocations: 169.1 kB / 24.91 MB, free: 9.191 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 0.976/0.976, allocations: 177.1 MB / 205.3 MB, free: 5.492 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.UpSample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|sample1.y|upSample.y|superSampleIpo.y|FIR1.y|FIR2.y",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.412e-06/1.412e-06, allocations: 0 / 273.5 MB, free: 1.254 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.055e-05/2.196e-05, allocations: 2.312 kB / 273.5 MB, free: 1.25 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2): time 0.002392/0.002414, allocations: 1.837 MB / 275.3 MB, free: 15.4 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009001/0.003314, allocations: 0.6774 MB / 276 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.676e-05/0.003411, allocations: 7.938 kB / 276 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001516/0.003562, allocations: 19.8 kB / 276 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001789/0.003741, allocations: 47.58 kB / 276.1 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003113/0.004053, allocations: 143.6 kB / 276.2 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001645/0.004217, allocations: 147.6 kB / 276.4 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.736e-05/0.004304, allocations: 18.45 kB / 276.4 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001727/0.004477, allocations: 99.7 kB / 276.5 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001689/0.004646, allocations: 87.81 kB / 276.6 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.749e-05/0.004674, allocations: 19.94 kB / 276.6 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.127e-05/0.004735, allocations: 16 kB / 276.6 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.872e-05/0.004804, allocations: 75.72 kB / 276.7 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.883e-05/0.004852, allocations: 51.83 kB / 276.7 MB, free: 14 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002146/0.005067, allocations: 167.4 kB / 276.9 MB, free: 13.83 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.00507, allocations: 0 / 276.9 MB, free: 13.83 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.005071, allocations: 0 / 276.9 MB, free: 13.83 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.005076, allocations: 0 / 276.9 MB, free: 13.83 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0005068/0.005583, allocations: 411.9 kB / 277.3 MB, free: 13.41 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.005618, allocations: 8.031 kB / 277.3 MB, free: 13.4 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001444/0.005763, allocations: 40.91 kB / 277.3 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002282/0.005991, allocations: 197.3 kB / 277.5 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.597e-05/0.006017, allocations: 12.38 kB / 277.6 MB, free: 13.13 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.005e-05/0.006037, allocations: 20.38 kB / 277.6 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004956/0.006533, allocations: 457.1 kB / 278 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.006544, allocations: 192 / 278 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.445e-05/0.006559, allocations: 8.375 kB / 278 MB, free: 12.63 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.689e-05/0.006596, allocations: 19.92 kB / 278 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000118/0.006714, allocations: 74.7 kB / 278.1 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003249/0.007038, allocations: 200.7 kB / 278.3 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002282/0.007267, allocations: 134.4 kB / 278.4 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.063e-05/0.007347, allocations: 71.11 kB / 278.5 MB, free: 12.08 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.964e-05/0.007377, allocations: 8.156 kB / 278.5 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.425e-05/0.007411, allocations: 54.48 kB / 278.6 MB, free: 12.01 MB / 266.7 MB Notification: Performance of pre-optimization done (n=39): time 1.673e-06/0.007413, allocations: 0 / 278.6 MB, free: 12.01 MB / 266.7 MB Notification: Performance of matching and sorting (n=39): time 0.0002882/0.007701, allocations: 197.5 kB / 278.8 MB, free: 11.81 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.341e-05/0.007795, allocations: 138.8 kB / 278.9 MB, free: 11.65 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001088/0.007903, allocations: 154.6 kB / 279.1 MB, free: 11.48 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.227e-05/0.007926, allocations: 33.7 kB / 279.1 MB, free: 11.45 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.755e-05/0.007963, allocations: 97.11 kB / 279.2 MB, free: 11.35 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.169e-05/0.007995, allocations: 31.72 kB / 279.2 MB, free: 11.32 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.888e-05/0.008044, allocations: 45.92 kB / 279.3 MB, free: 11.26 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.506e-05/0.008139, allocations: 326.8 kB / 279.6 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.678e-05/0.008166, allocations: 24.52 kB / 279.6 MB, free: 10.91 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.5e-05/0.008241, allocations: 112.9 kB / 279.7 MB, free: 10.76 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001158/0.008356, allocations: 142.6 kB / 279.9 MB, free: 10.57 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.008359, allocations: 0 / 279.9 MB, free: 10.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0001575/0.008517, allocations: 149.7 kB / 280 MB, free: 10.42 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.008531, allocations: 4 kB / 280 MB, free: 10.42 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.008539, allocations: 4 kB / 280 MB, free: 10.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.008554, allocations: 7.938 kB / 280 MB, free: 10.41 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001042/0.008658, allocations: 35.92 kB / 280.1 MB, free: 10.37 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.008665, allocations: 8 kB / 280.1 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.582e-05/0.008711, allocations: 11.95 kB / 280.1 MB, free: 10.35 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.281e-05/0.008724, allocations: 19.92 kB / 280.1 MB, free: 10.33 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.0001039/0.008828, allocations: 136.6 kB / 280.2 MB, free: 10.19 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001663/0.008994, allocations: 150.6 kB / 280.4 MB, free: 10.04 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.796e-05/0.009042, allocations: 30.66 kB / 280.4 MB, free: 10 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.086e-06/0.00905, allocations: 15.92 kB / 280.4 MB, free: 9.988 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-06/0.009053, allocations: 0 / 280.4 MB, free: 9.988 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.451e-06/0.009058, allocations: 3.984 kB / 280.4 MB, free: 9.984 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001308/0.009189, allocations: 109.7 kB / 280.5 MB, free: 9.859 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.009191, allocations: 0 / 280.5 MB, free: 9.859 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001645/0.009356, allocations: 63.91 kB / 280.6 MB, free: 9.797 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.00936, allocations: 4 kB / 280.6 MB, free: 9.793 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.62e-05/0.009377, allocations: 11.98 kB / 280.6 MB, free: 9.781 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.009379, allocations: 7.938 kB / 280.6 MB, free: 9.773 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.009381, allocations: 0 / 280.6 MB, free: 9.773 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001121/0.009493, allocations: 164.3 kB / 280.8 MB, free: 9.59 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.416e-05/0.009557, allocations: 39.78 kB / 280.8 MB, free: 9.551 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.283e-05/0.00959, allocations: 15.98 kB / 280.8 MB, free: 9.535 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.673e-05/0.009656, allocations: 12 kB / 280.8 MB, free: 9.523 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.018e-05/0.009687, allocations: 7.922 kB / 280.8 MB, free: 9.516 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.246e-05/0.009699, allocations: 4 kB / 280.9 MB, free: 9.512 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.394e-05/0.009743, allocations: 45.86 kB / 280.9 MB, free: 9.465 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009743, allocations: 0 / 280.9 MB, free: 9.465 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001734/0.009916, allocations: 44.03 kB / 280.9 MB, free: 9.422 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.0001219/0.01004, allocations: 99.48 kB / 281 MB, free: 9.32 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001725/0.01021, allocations: 126.2 kB / 281.2 MB, free: 9.191 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.88e-06/0.01022, allocations: 0 / 281.2 MB, free: 9.191 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.3e-05/0.01023, allocations: 9.734 kB / 281.2 MB, free: 9.18 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003659/0.01059, allocations: 142.5 kB / 281.3 MB, free: 9.039 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009476/0.01154, allocations: 0.498 MB / 281.8 MB, free: 8.504 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.053e-05/0.01162, allocations: 112.8 kB / 281.9 MB, free: 8.371 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.605e-05/0.01166, allocations: 13.95 kB / 281.9 MB, free: 8.359 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001029/0.01176, allocations: 83.36 kB / 282 MB, free: 8.277 MB / 266.7 MB Notification: Performance of SimCode: time 1.313e-06/0.01176, allocations: 0 / 282 MB, free: 8.277 MB / 266.7 MB Notification: Performance of Templates: time 0.005049/0.01681, allocations: 2.681 MB / 284.7 MB, free: 5.633 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2 -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.687523788306862]