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.001851/0.001851, allocations: 91.61 kB / 20.96 MB, free: 3.461 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.002068/0.002068, allocations: 165.3 kB / 24.27 MB, free: 152 kB / 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.614/1.614, allocations: 177.1 MB / 204.6 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] 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.954e-06/1.954e-06, allocations: 0 / 272.3 MB, free: 1.828 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.8e-05/2.996e-05, allocations: 2.312 kB / 272.3 MB, free: 1.824 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2): time 0.004654/0.004684, allocations: 1.774 MB / 274.1 MB, free: 44 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001988/0.006672, allocations: 0.6543 MB / 274.8 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001327/0.006805, allocations: 11.88 kB / 274.8 MB, free: 15.37 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002274/0.007032, allocations: 27.72 kB / 274.8 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002937/0.007326, allocations: 39.7 kB / 274.8 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006548/0.00798, allocations: 135.6 kB / 275 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003204/0.008301, allocations: 151.5 kB / 275.1 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001452/0.008446, allocations: 21.8 kB / 275.1 MB, free: 15 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003131/0.008759, allocations: 91.78 kB / 275.2 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000303/0.009062, allocations: 95.75 kB / 275.3 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.426e-05/0.009116, allocations: 12 kB / 275.3 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.648e-05/0.009203, allocations: 23.92 kB / 275.4 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000145/0.009348, allocations: 71.8 kB / 275.4 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001247/0.009473, allocations: 51.83 kB / 275.5 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000466/0.009939, allocations: 227.2 kB / 275.7 MB, free: 14.44 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.009942, allocations: 0 / 275.7 MB, free: 14.44 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.183e-06/0.009944, allocations: 0 / 275.7 MB, free: 14.44 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.297e-06/0.009953, allocations: 4 kB / 275.7 MB, free: 14.44 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.001235/0.01119, allocations: 0.5344 MB / 276.2 MB, free: 13.87 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.01123, allocations: 8.031 kB / 276.2 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002812/0.01151, allocations: 48.75 kB / 276.3 MB, free: 13.81 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004775/0.01199, allocations: 212.1 kB / 276.5 MB, free: 13.58 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.79e-05/0.01204, allocations: 16.38 kB / 276.5 MB, free: 13.56 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.928e-05/0.01209, allocations: 16.38 kB / 276.5 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001691/0.01378, allocations: 0.5169 MB / 277 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.01379, allocations: 192 / 277 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.183e-05/0.01383, allocations: 4.375 kB / 277.1 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.081e-05/0.01388, allocations: 19.92 kB / 277.1 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006079/0.01448, allocations: 127.8 kB / 277.2 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007212/0.0152, allocations: 338.9 kB / 277.5 MB, free: 12.48 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007703/0.01598, allocations: 205.1 kB / 277.7 MB, free: 12.24 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004638/0.01644, allocations: 115.6 kB / 277.8 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.008e-05/0.01651, allocations: 15.94 kB / 277.9 MB, free: 12.1 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.047e-05/0.01658, allocations: 53.31 kB / 277.9 MB, free: 12.04 MB / 266.7 MB Notification: Performance of pre-optimization done (n=39): time 2.735e-06/0.01658, allocations: 0 / 277.9 MB, free: 12.04 MB / 266.7 MB Notification: Performance of matching and sorting (n=39): time 0.001435/0.01802, allocations: 333.5 kB / 278.2 MB, free: 11.71 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002088/0.01823, allocations: 134.7 kB / 278.4 MB, free: 11.55 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003726/0.0186, allocations: 233.9 kB / 278.6 MB, free: 11.3 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.909e-05/0.01866, allocations: 33.7 kB / 278.6 MB, free: 11.27 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001667/0.01882, allocations: 151.9 kB / 278.8 MB, free: 11.11 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.94e-05/0.01891, allocations: 39.8 kB / 278.8 MB, free: 11.07 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001484/0.01906, allocations: 51.59 kB / 278.9 MB, free: 11.01 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0004566/0.01952, allocations: 0.5119 MB / 279.4 MB, free: 10.49 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001548/0.01967, allocations: 36.44 kB / 279.4 MB, free: 10.45 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003481/0.02002, allocations: 164.5 kB / 279.6 MB, free: 10.23 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005385/0.02056, allocations: 203.4 kB / 279.8 MB, free: 9.977 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.719e-06/0.02057, allocations: 4 kB / 279.8 MB, free: 9.973 MB / 266.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006749/0.02125, allocations: 209.3 kB / 280 MB, free: 9.762 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.803e-05/0.02127, allocations: 15.88 kB / 280 MB, free: 9.746 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.195e-05/0.02129, allocations: 4 kB / 280 MB, free: 9.742 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.378e-05/0.02131, allocations: 4 kB / 280 MB, free: 9.738 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002511/0.02156, allocations: 35.92 kB / 280 MB, free: 9.703 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.145e-05/0.02158, allocations: 11.94 kB / 280 MB, free: 9.691 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001673/0.02175, allocations: 11.94 kB / 280.1 MB, free: 9.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.629e-05/0.02178, allocations: 8.344 kB / 280.1 MB, free: 9.672 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.0003052/0.02208, allocations: 192.5 kB / 280.3 MB, free: 9.473 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009629/0.02304, allocations: 242.4 kB / 280.5 MB, free: 9.23 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001519/0.0232, allocations: 38.64 kB / 280.5 MB, free: 9.188 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.083e-05/0.02321, allocations: 4 kB / 280.5 MB, free: 9.184 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.02321, allocations: 0 / 280.5 MB, free: 9.184 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.437e-05/0.02323, allocations: 7.984 kB / 280.5 MB, free: 9.176 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004167/0.02364, allocations: 172.4 kB / 280.7 MB, free: 8.973 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.02365, allocations: 0 / 280.7 MB, free: 8.973 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005697/0.02422, allocations: 63.91 kB / 280.8 MB, free: 8.91 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.561e-06/0.02422, allocations: 4 kB / 280.8 MB, free: 8.906 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.035e-05/0.02426, allocations: 11.94 kB / 280.8 MB, free: 8.895 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.747e-05/0.02428, allocations: 7.984 kB / 280.8 MB, free: 8.887 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.02428, allocations: 0 / 280.8 MB, free: 8.887 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001159/0.02544, allocations: 446.8 kB / 281.2 MB, free: 8.422 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002132/0.02565, allocations: 51.75 kB / 281.3 MB, free: 8.371 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001047/0.02576, allocations: 23.92 kB / 281.3 MB, free: 8.348 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002515/0.02601, allocations: 8 kB / 281.3 MB, free: 8.34 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.75e-05/0.02606, allocations: 4 kB / 281.3 MB, free: 8.336 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.546e-05/0.0261, allocations: 11.98 kB / 281.3 MB, free: 8.324 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000226/0.02633, allocations: 176.2 kB / 281.5 MB, free: 8.152 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.02633, allocations: 0 / 281.5 MB, free: 8.152 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006157/0.02694, allocations: 40 kB / 281.5 MB, free: 8.113 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.00025/0.02719, allocations: 119.6 kB / 281.7 MB, free: 7.988 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007717/0.02797, allocations: 176.2 kB / 281.8 MB, free: 7.812 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.02797, allocations: 4.125 kB / 281.8 MB, free: 7.809 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.464e-05/0.02804, allocations: 19.62 kB / 281.9 MB, free: 7.785 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001207/0.02925, allocations: 171.8 kB / 282 MB, free: 7.617 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002226/0.03148, allocations: 0.4987 MB / 282.5 MB, free: 7.078 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003136/0.03179, allocations: 169.6 kB / 282.7 MB, free: 6.898 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.823e-05/0.03186, allocations: 14.03 kB / 282.7 MB, free: 6.883 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001147/0.03197, allocations: 24.48 kB / 282.7 MB, free: 6.859 MB / 266.7 MB Notification: Performance of SimCode: time 1.062e-06/0.03197, allocations: 0 / 282.7 MB, free: 6.859 MB / 266.7 MB Notification: Performance of Templates: time 0.01205/0.04403, allocations: 2.572 MB / 285.3 MB, free: 4.312 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 -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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.662857217947021]