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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00152/0.00152, allocations: 110.1 kB / 17.06 MB, free: 5.793 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001831/0.001831, allocations: 200 kB / 18.01 MB, free: 4.918 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.346/1.346, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001505/0.001505, allocations: 55.91 kB / 350.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.272/0.2735, allocations: 49.44 MB / 400.3 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2): time 0.002754/0.2763, allocations: 1.748 MB / 402 MB, free: 7.047 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009486/0.2773, allocations: 0.6072 MB / 402.6 MB, free: 6.441 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.717e-05/0.2774, allocations: 7.938 kB / 402.6 MB, free: 6.434 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001076/0.2775, allocations: 15.8 kB / 402.6 MB, free: 6.418 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001628/0.2777, allocations: 43.7 kB / 402.7 MB, free: 6.375 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003316/0.278, allocations: 126.3 kB / 402.8 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001909/0.2782, allocations: 155.6 kB / 402.9 MB, free: 6.102 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.681e-05/0.2783, allocations: 37.53 kB / 403 MB, free: 6.066 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001088/0.2784, allocations: 67.77 kB / 403 MB, free: 6 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001775/0.2786, allocations: 107.6 kB / 403.2 MB, free: 5.895 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.61e-05/0.2786, allocations: 12 kB / 403.2 MB, free: 5.883 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.155e-05/0.2787, allocations: 12 kB / 403.2 MB, free: 5.871 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.582e-05/0.2788, allocations: 75.81 kB / 403.3 MB, free: 5.797 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.527e-05/0.2788, allocations: 91.45 kB / 403.3 MB, free: 5.707 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002107/0.2791, allocations: 210.1 kB / 403.5 MB, free: 5.504 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.2791, allocations: 0 / 403.5 MB, free: 5.504 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.2791, allocations: 0 / 403.5 MB, free: 5.504 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.274e-06/0.2791, allocations: 0 / 403.5 MB, free: 5.504 MB / 318.1 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.0007049/0.2798, allocations: 0.5101 MB / 404.1 MB, free: 4.945 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.92e-05/0.2798, allocations: 11.97 kB / 404.1 MB, free: 4.934 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.163e-05/0.2799, allocations: 62.66 kB / 404.1 MB, free: 4.863 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.878e-05/0.2799, allocations: 24.8 kB / 404.2 MB, free: 4.84 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002432/0.2802, allocations: 252 kB / 404.4 MB, free: 4.555 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.59e-05/0.2802, allocations: 20.38 kB / 404.4 MB, free: 4.535 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.913e-05/0.2803, allocations: 12.38 kB / 404.4 MB, free: 4.523 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009353/0.2812, allocations: 0.6342 MB / 405.1 MB, free: 3.863 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.2812, allocations: 0 / 405.1 MB, free: 3.863 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.941e-05/0.2812, allocations: 4 kB / 405.1 MB, free: 3.859 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.582e-05/0.2813, allocations: 23.92 kB / 405.1 MB, free: 3.836 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003514/0.2816, allocations: 183.8 kB / 405.3 MB, free: 3.656 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000353/0.282, allocations: 366.3 kB / 405.6 MB, free: 3.242 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003863/0.2824, allocations: 239.6 kB / 405.9 MB, free: 2.98 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002529/0.2827, allocations: 158.6 kB / 406 MB, free: 2.816 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.026e-05/0.2827, allocations: 4.5 kB / 406 MB, free: 2.812 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.713e-05/0.2827, allocations: 42.5 kB / 406.1 MB, free: 2.762 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 1.513e-06/0.2827, allocations: 4 kB / 406.1 MB, free: 2.758 MB / 318.1 MB Notification: Performance of matching and sorting (n=39): time 0.0007574/0.2835, allocations: 425.4 kB / 406.5 MB, free: 2.336 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.656e-05/0.2836, allocations: 140 kB / 406.6 MB, free: 2.176 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001228/0.2837, allocations: 166.4 kB / 406.8 MB, free: 2.004 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.5e-05/0.2838, allocations: 41.69 kB / 406.8 MB, free: 1.957 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.155e-05/0.2838, allocations: 97.09 kB / 406.9 MB, free: 1.855 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.859e-05/0.2839, allocations: 43.91 kB / 407 MB, free: 1.812 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.457e-05/0.2839, allocations: 78.12 kB / 407 MB, free: 1.73 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.284, allocations: 334.8 kB / 407.4 MB, free: 1.395 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001236/0.2842, allocations: 76.81 kB / 407.4 MB, free: 1.32 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002434/0.2844, allocations: 322.7 kB / 407.8 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003576/0.2848, allocations: 412.9 kB / 408.2 MB, free: 372 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.678e-06/0.2848, allocations: 4 kB / 408.2 MB, free: 368 kB / 318.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005257/0.2853, allocations: 413.5 kB / 408.6 MB, free: 15.95 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.2854, allocations: 8 kB / 408.6 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.2854, allocations: 8 kB / 408.6 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.042e-05/0.2854, allocations: 12 kB / 408.6 MB, free: 15.92 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000218/0.2856, allocations: 87.83 kB / 408.7 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.637e-05/0.2856, allocations: 19.92 kB / 408.7 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001506/0.2858, allocations: 31.83 kB / 408.7 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.344e-05/0.2858, allocations: 28.3 kB / 408.8 MB, free: 15.76 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 13 ($CLKPRE.superSampleIpo.ticks,superSampleIpo.ticks,superSampleIpo.usedFactor,$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 (52): * Single equations (assignments): 52 * 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.0001508/0.286, allocations: 183.1 kB / 408.9 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004482/0.2864, allocations: 293.4 kB / 409.2 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.732e-05/0.2865, allocations: 34.66 kB / 409.3 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.2866, allocations: 4 kB / 409.3 MB, free: 15.24 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.2866, allocations: 7.984 kB / 409.3 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.2866, allocations: 0 / 409.3 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002195/0.2868, allocations: 253.2 kB / 409.5 MB, free: 14.94 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.2868, allocations: 3.984 kB / 409.5 MB, free: 14.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002476/0.2871, allocations: 71.84 kB / 409.6 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.2871, allocations: 0 / 409.6 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.976e-05/0.2871, allocations: 11.98 kB / 409.6 MB, free: 14.85 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.758e-06/0.2871, allocations: 4 kB / 409.6 MB, free: 14.85 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.2871, allocations: 3.984 kB / 409.6 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000536/0.2877, allocations: 443.8 kB / 410 MB, free: 14.39 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001151/0.2878, allocations: 128.8 kB / 410.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.901e-05/0.2878, allocations: 19.98 kB / 410.2 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001585/0.288, allocations: 11.98 kB / 410.2 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.896e-05/0.2881, allocations: 8 kB / 410.2 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.793e-05/0.2881, allocations: 8 kB / 410.2 MB, free: 14.2 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.95e-05/0.2882, allocations: 140.5 kB / 410.4 MB, free: 14.06 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2882, allocations: 0 / 410.4 MB, free: 14.06 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003506/0.2885, allocations: 44 kB / 410.4 MB, free: 14.02 MB / 334.1 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.0011/0.2896, allocations: 1.192 MB / 411.6 MB, free: 12.79 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004485/0.2901, allocations: 285.4 kB / 411.9 MB, free: 12.51 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.2901, allocations: 0 / 411.9 MB, free: 12.51 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.65e-05/0.2902, allocations: 8.484 kB / 411.9 MB, free: 12.5 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006523/0.2908, allocations: 218.9 kB / 412.1 MB, free: 12.29 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003204/0.294, allocations: 2.957 MB / 415 MB, free: 8.992 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000313/0.2944, allocations: 0.7761 MB / 415.8 MB, free: 8.188 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.953e-05/0.2944, allocations: 26.3 kB / 415.8 MB, free: 8.164 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001382/0.2946, allocations: 71.41 kB / 415.9 MB, free: 8.094 MB / 334.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2946, allocations: 4 kB / 415.9 MB, free: 8.09 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02153/0.3161, allocations: 5.049 MB / 421 MB, free: 3.168 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.892/8.208, allocations: 8.672 kB / 421 MB, free: 3.16 MB / 334.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2_res.csv --start-time 0 --stop-time 0.06 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2.4e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/UpSample2/UpSample2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches