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.0009509/0.0009509, allocations: 79.69 kB / 20.67 MB, free: 3.891 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.001102/0.001102, allocations: 170 kB / 23.95 MB, free: 0.6133 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.9692/0.9692, allocations: 177.1 MB / 204.3 MB, free: 5.727 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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.475e-06/2.475e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.049e-05/3.296e-05, allocations: 12.75 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2): time 0.002582/0.002615, allocations: 1.751 MB / 326.3 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001045/0.00366, allocations: 0.6542 MB / 327 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001177/0.003778, allocations: 3.938 kB / 327 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002014/0.003979, allocations: 19.8 kB / 327 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002593/0.004238, allocations: 43.66 kB / 327.1 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004082/0.004646, allocations: 151.2 kB / 327.2 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001682/0.004815, allocations: 147.6 kB / 327.3 MB, free: 13.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001235/0.004938, allocations: 21.78 kB / 327.4 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001925/0.005131, allocations: 95.78 kB / 327.5 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001932/0.005324, allocations: 91.8 kB / 327.6 MB, free: 12.96 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.71e-05/0.005351, allocations: 15.94 kB / 327.6 MB, free: 12.94 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.938e-05/0.0054, allocations: 16 kB / 327.6 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.991e-05/0.00547, allocations: 67.81 kB / 327.6 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.522e-05/0.005525, allocations: 55.77 kB / 327.7 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002432/0.005769, allocations: 227.2 kB / 327.9 MB, free: 12.58 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.005772, allocations: 0 / 327.9 MB, free: 12.58 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.005775, allocations: 8 kB / 327.9 MB, free: 12.57 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.01e-06/0.00578, allocations: 0 / 327.9 MB, free: 12.57 MB / 298.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.0006729/0.006453, allocations: 440.6 kB / 328.4 MB, free: 12.12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/0.006497, allocations: 8.031 kB / 328.4 MB, free: 12.11 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.361e-05/0.006551, allocations: 58.72 kB / 328.4 MB, free: 12.04 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001349/0.006686, allocations: 32.75 kB / 328.5 MB, free: 12.01 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002394/0.006925, allocations: 205.2 kB / 328.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.819e-05/0.006953, allocations: 12.38 kB / 328.7 MB, free: 11.77 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.068e-05/0.006974, allocations: 16.38 kB / 328.7 MB, free: 11.76 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007412/0.007715, allocations: 0.636 MB / 329.3 MB, free: 11.1 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.007726, allocations: 192 / 329.3 MB, free: 11.1 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.978e-05/0.007746, allocations: 12.12 kB / 329.3 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.655e-05/0.007772, allocations: 12 kB / 329.3 MB, free: 11.08 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002516/0.008024, allocations: 183.8 kB / 329.5 MB, free: 10.9 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003781/0.008402, allocations: 301.5 kB / 329.8 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000321/0.008723, allocations: 227.7 kB / 330 MB, free: 10.3 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001714/0.008894, allocations: 150.4 kB / 330.2 MB, free: 10.15 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.512e-05/0.008929, allocations: 15.98 kB / 330.2 MB, free: 10.13 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.41e-05/0.008953, allocations: 34.56 kB / 330.2 MB, free: 10.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 1.573e-06/0.008955, allocations: 0 / 330.2 MB, free: 10.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=39): time 0.0006469/0.009602, allocations: 433.9 kB / 330.7 MB, free: 9.66 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001056/0.009708, allocations: 138.6 kB / 330.8 MB, free: 9.5 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001216/0.009829, allocations: 171 kB / 331 MB, free: 9.324 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.159e-05/0.009851, allocations: 37.7 kB / 331 MB, free: 9.281 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.019e-05/0.009901, allocations: 97.12 kB / 331.1 MB, free: 9.184 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.926e-05/0.00993, allocations: 39.73 kB / 331.1 MB, free: 9.145 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.237e-05/0.009983, allocations: 46.02 kB / 331.2 MB, free: 9.09 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.864e-05/0.01008, allocations: 330.8 kB / 331.5 MB, free: 8.758 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.938e-05/0.01015, allocations: 48.42 kB / 331.6 MB, free: 8.711 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.785e-05/0.01025, allocations: 141.9 kB / 331.7 MB, free: 8.531 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001467/0.0104, allocations: 179.8 kB / 331.9 MB, free: 8.312 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.0104, allocations: 4 kB / 331.9 MB, free: 8.309 MB / 298.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0002257/0.01063, allocations: 229.1 kB / 332.1 MB, free: 8.078 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/0.01064, allocations: 8 kB / 332.1 MB, free: 8.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.01065, allocations: 4 kB / 332.1 MB, free: 8.066 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.01067, allocations: 4 kB / 332.1 MB, free: 8.062 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001055/0.01077, allocations: 39.92 kB / 332.1 MB, free: 8.023 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/0.01078, allocations: 4 kB / 332.2 MB, free: 8.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.785e-05/0.01083, allocations: 12.38 kB / 332.2 MB, free: 8.008 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.268e-05/0.01084, allocations: 19.98 kB / 332.2 MB, free: 7.988 MB / 298.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.0001151/0.01096, allocations: 154.2 kB / 332.3 MB, free: 7.828 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004064/0.01136, allocations: 302.3 kB / 332.6 MB, free: 7.527 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.488e-05/0.01142, allocations: 34.66 kB / 332.7 MB, free: 7.488 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.01142, allocations: 11.98 kB / 332.7 MB, free: 7.477 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.01143, allocations: 0 / 332.7 MB, free: 7.477 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.01144, allocations: 0 / 332.7 MB, free: 7.477 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001534/0.01159, allocations: 180.6 kB / 332.9 MB, free: 7.258 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.01159, allocations: 7.938 kB / 332.9 MB, free: 7.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001491/0.01174, allocations: 67.89 kB / 332.9 MB, free: 7.184 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.871e-06/0.01175, allocations: 4 kB / 332.9 MB, free: 7.18 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.319e-05/0.01176, allocations: 8 kB / 332.9 MB, free: 7.172 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.01176, allocations: 0 / 332.9 MB, free: 7.172 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.01176, allocations: 3.938 kB / 332.9 MB, free: 7.168 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003832/0.01215, allocations: 449 kB / 333.4 MB, free: 6.707 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.969e-05/0.01223, allocations: 67.61 kB / 333.4 MB, free: 6.641 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.302e-05/0.01226, allocations: 19.94 kB / 333.5 MB, free: 6.621 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.177e-05/0.01233, allocations: 11.98 kB / 333.5 MB, free: 6.609 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.917e-05/0.01236, allocations: 8 kB / 333.5 MB, free: 6.602 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.572e-05/0.01238, allocations: 15.98 kB / 333.5 MB, free: 6.586 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.466e-05/0.01244, allocations: 127.2 kB / 333.6 MB, free: 6.461 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01244, allocations: 0 / 333.6 MB, free: 6.461 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002127/0.01265, allocations: 40 kB / 333.7 MB, free: 6.422 MB / 298.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.0008165/0.01347, allocations: 1.18 MB / 334.8 MB, free: 5.211 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002809/0.01375, allocations: 208.4 kB / 335 MB, free: 5.008 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.01375, allocations: 0 / 335 MB, free: 5.008 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.089e-05/0.01377, allocations: 11.98 kB / 335.1 MB, free: 4.996 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005131/0.01429, allocations: 195.8 kB / 335.3 MB, free: 4.805 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002017/0.0163, allocations: 2.364 MB / 337.6 MB, free: 2.27 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00012/0.01642, allocations: 169.9 kB / 337.8 MB, free: 2.082 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.717e-05/0.01647, allocations: 17.95 kB / 337.8 MB, free: 2.062 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000103/0.01657, allocations: 68.47 kB / 337.9 MB, free: 1.996 MB / 298.7 MB Notification: Performance of SimCode: time 7.82e-07/0.01657, allocations: 0 / 337.9 MB, free: 1.996 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02165/0.03823, allocations: 5.639 MB / 343.5 MB, free: 12.52 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.358/7.396, allocations: 6.875 kB / 343.5 MB, free: 12.52 MB / 314.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2_fmu --startTime=0 --stopTime=0.06 --stepSize=1.1957e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe 2>&1) [Timeout 52.5] 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: 9.2242586100474]