Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001372/0.001373, allocations: 113.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001606/0.001606, allocations: 207.8 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.547/1.547, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001347, allocations: 63.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3505/0.3518, allocations: 50.54 MB / 408.8 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2): time 0.003389/0.3553, allocations: 1.771 MB / 410.5 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001484/0.3568, allocations: 0.67 MB / 411.2 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001169/0.3569, allocations: 7.938 kB / 411.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001778/0.3571, allocations: 15.8 kB / 411.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002482/0.3574, allocations: 51.7 kB / 411.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004583/0.3579, allocations: 135.2 kB / 411.4 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000229/0.3581, allocations: 159.6 kB / 411.6 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001362/0.3583, allocations: 29.55 kB / 411.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002295/0.3585, allocations: 83.67 kB / 411.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002439/0.3588, allocations: 99.64 kB / 411.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.781e-05/0.3588, allocations: 16 kB / 411.8 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.005e-05/0.3589, allocations: 20 kB / 411.8 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.83e-05/0.359, allocations: 63.81 kB / 411.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001127/0.3591, allocations: 91.44 kB / 412 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003323/0.3594, allocations: 218 kB / 412.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.193e-06/0.3594, allocations: 3.984 kB / 412.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3594, allocations: 0 / 412.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.3595, allocations: 4 kB / 412.2 MB, free: 14.14 MB / 334.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.001087/0.3606, allocations: 0.5101 MB / 412.7 MB, free: 13.58 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.698e-05/0.3606, allocations: 8.031 kB / 412.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.322e-05/0.3607, allocations: 62.64 kB / 412.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002182/0.3609, allocations: 36.75 kB / 412.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004015/0.3613, allocations: 263.9 kB / 413.1 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.704e-05/0.3614, allocations: 16.38 kB / 413.1 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.688e-05/0.3614, allocations: 16.38 kB / 413.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001143/0.3626, allocations: 0.6263 MB / 413.7 MB, free: 12.49 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.3626, allocations: 0 / 413.7 MB, free: 12.49 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.781e-05/0.3626, allocations: 7.984 kB / 413.7 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.011e-05/0.3627, allocations: 15.94 kB / 413.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000406/0.3631, allocations: 183.8 kB / 413.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006414/0.3637, allocations: 374.2 kB / 414.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004998/0.3642, allocations: 239.6 kB / 414.5 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002859/0.3645, allocations: 162.6 kB / 414.7 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.828e-05/0.3646, allocations: 8.141 kB / 414.7 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.471e-05/0.3646, allocations: 38.56 kB / 414.7 MB, free: 11.38 MB / 334.1 MB Notification: Performance of pre-optimization done (n=39): time 1.543e-06/0.3646, allocations: 0 / 414.7 MB, free: 11.38 MB / 334.1 MB Notification: Performance of matching and sorting (n=39): time 0.0009231/0.3656, allocations: 421.7 kB / 415.1 MB, free: 10.96 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001493/0.3657, allocations: 142.9 kB / 415.3 MB, free: 10.8 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001873/0.3659, allocations: 170.4 kB / 415.4 MB, free: 10.62 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.818e-05/0.366, allocations: 29.7 kB / 415.5 MB, free: 10.58 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.263e-05/0.366, allocations: 97.14 kB / 415.6 MB, free: 10.48 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.249e-05/0.3661, allocations: 55.61 kB / 415.6 MB, free: 10.43 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.887e-05/0.3662, allocations: 74.12 kB / 415.7 MB, free: 10.35 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.3663, allocations: 338.8 kB / 416 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001339/0.3665, allocations: 76.83 kB / 416.1 MB, free: 9.934 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000289/0.3668, allocations: 326.7 kB / 416.4 MB, free: 9.496 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004233/0.3672, allocations: 412.9 kB / 416.8 MB, free: 8.973 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.3672, allocations: 8 kB / 416.8 MB, free: 8.965 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005624/0.3678, allocations: 404.8 kB / 417.2 MB, free: 8.562 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.146e-05/0.3678, allocations: 13 kB / 417.2 MB, free: 8.551 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/0.3678, allocations: 8 kB / 417.2 MB, free: 8.543 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.849e-05/0.3679, allocations: 19.98 kB / 417.3 MB, free: 8.523 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002404/0.3681, allocations: 75.84 kB / 417.3 MB, free: 8.449 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.857e-05/0.3681, allocations: 15.94 kB / 417.3 MB, free: 8.434 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001793/0.3683, allocations: 39.83 kB / 417.4 MB, free: 8.395 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.099e-05/0.3684, allocations: 24 kB / 417.4 MB, free: 8.371 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.0001687/0.3685, allocations: 186.3 kB / 417.6 MB, free: 8.18 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004906/0.369, allocations: 298.4 kB / 417.9 MB, free: 7.883 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.948e-05/0.3691, allocations: 42.64 kB / 417.9 MB, free: 7.844 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.3691, allocations: 4 kB / 417.9 MB, free: 7.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.3692, allocations: 0 / 417.9 MB, free: 7.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.3692, allocations: 0 / 417.9 MB, free: 7.84 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002471/0.3694, allocations: 253.2 kB / 418.2 MB, free: 7.543 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.3694, allocations: 4 kB / 418.2 MB, free: 7.539 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002574/0.3697, allocations: 59.91 kB / 418.2 MB, free: 7.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.015e-06/0.3697, allocations: 4 kB / 418.2 MB, free: 7.477 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.601e-05/0.3697, allocations: 11.98 kB / 418.3 MB, free: 7.465 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/0.3697, allocations: 0 / 418.3 MB, free: 7.465 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.3697, allocations: 4 kB / 418.3 MB, free: 7.461 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006076/0.3704, allocations: 439.8 kB / 418.7 MB, free: 7.012 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001519/0.3705, allocations: 132.9 kB / 418.8 MB, free: 6.863 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.352e-05/0.3706, allocations: 16 kB / 418.8 MB, free: 6.848 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001543/0.3707, allocations: 19.92 kB / 418.9 MB, free: 6.828 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.4e-05/0.3708, allocations: 0 / 418.9 MB, free: 6.828 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.167e-05/0.3708, allocations: 15.98 kB / 418.9 MB, free: 6.812 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001054/0.3709, allocations: 132.3 kB / 419 MB, free: 6.684 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3709, allocations: 0 / 419 MB, free: 6.684 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004/0.3713, allocations: 52 kB / 419 MB, free: 6.633 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.001289/0.3726, allocations: 1.181 MB / 420.2 MB, free: 5.414 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005357/0.3732, allocations: 297.2 kB / 420.5 MB, free: 5.125 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.277e-06/0.3732, allocations: 0 / 420.5 MB, free: 5.125 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.684e-05/0.3732, allocations: 4 kB / 420.5 MB, free: 5.121 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007027/0.374, allocations: 220.3 kB / 420.7 MB, free: 4.906 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00384/0.3778, allocations: 2.969 MB / 423.7 MB, free: 1.602 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003675/0.3782, allocations: 0.7801 MB / 424.5 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.774e-05/0.3783, allocations: 26.28 kB / 424.5 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001324/0.3784, allocations: 67.41 kB / 424.6 MB, free: 0.707 MB / 334.1 MB Notification: Performance of SimCode: time 1.122e-06/0.3784, allocations: 4 kB / 424.6 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02784/0.4063, allocations: 5.069 MB / 429.7 MB, free: 11.76 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.236/8.642, allocations: 7.031 kB / 429.7 MB, free: 11.76 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches