Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.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.001275/0.001275, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 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.001408/0.001408, allocations: 206.3 kB / 23.73 MB, free: 4.379 MB / 14.72 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.422/1.422, allocations: 230.6 MB / 257.5 MB, free: 7.762 MB / 206.1 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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002037/0.002037, allocations: 51.91 kB / 377.7 MB, free: 2.895 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2901/0.2922, allocations: 53.37 MB / 431.1 MB, free: 6.578 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1): time 0.003117/0.2953, allocations: 1.746 MB / 432.8 MB, free: 4.828 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001148/0.2964, allocations: 0.5687 MB / 433.4 MB, free: 4.254 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.885e-05/0.2965, allocations: 11.94 kB / 433.4 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.644e-05/0.2966, allocations: 7.875 kB / 433.4 MB, free: 4.234 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001346/0.2967, allocations: 23.8 kB / 433.4 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004348/0.2971, allocations: 99.64 kB / 433.5 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001484/0.2973, allocations: 91.7 kB / 433.6 MB, free: 4.023 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.2974, allocations: 27.3 kB / 433.7 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001409/0.2975, allocations: 51.84 kB / 433.7 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.39e-05/0.2976, allocations: 47.77 kB / 433.8 MB, free: 3.895 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.998e-05/0.2976, allocations: 4 kB / 433.8 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.549e-05/0.2977, allocations: 19.94 kB / 433.8 MB, free: 3.871 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.448e-05/0.2977, allocations: 19.92 kB / 433.8 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.527e-05/0.2978, allocations: 43.72 kB / 433.8 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001963/0.298, allocations: 115.4 kB / 434 MB, free: 3.695 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.298, allocations: 0 / 434 MB, free: 3.695 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.298, allocations: 0 / 434 MB, free: 3.695 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.023e-05/0.298, allocations: 4 kB / 434 MB, free: 3.691 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0005447/0.2986, allocations: 357.7 kB / 434.3 MB, free: 3.312 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.477e-05/0.2986, allocations: 8.031 kB / 434.3 MB, free: 3.305 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.796e-05/0.2986, allocations: 46.75 kB / 434.4 MB, free: 3.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001336/0.2988, allocations: 24.83 kB / 434.4 MB, free: 3.227 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000291/0.2991, allocations: 166.2 kB / 434.5 MB, free: 3.039 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.801e-05/0.2991, allocations: 4.375 kB / 434.6 MB, free: 3.035 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.05e-05/0.2991, allocations: 12.38 kB / 434.6 MB, free: 3.023 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004834/0.2996, allocations: 271.4 kB / 434.8 MB, free: 2.738 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.2996, allocations: 0 / 434.8 MB, free: 2.738 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.065e-05/0.2996, allocations: 0 / 434.8 MB, free: 2.738 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.618e-06/0.2996, allocations: 4 kB / 434.8 MB, free: 2.734 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001349/0.2997, allocations: 55.91 kB / 434.9 MB, free: 2.68 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003593/0.3001, allocations: 269.6 kB / 435.1 MB, free: 2.367 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002362/0.3003, allocations: 127.8 kB / 435.3 MB, free: 2.215 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001284/0.3005, allocations: 70.69 kB / 435.3 MB, free: 2.137 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.811e-05/0.3005, allocations: 3.984 kB / 435.3 MB, free: 2.133 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.039e-05/0.3005, allocations: 38.56 kB / 435.4 MB, free: 2.086 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.353e-06/0.3005, allocations: 0 / 435.4 MB, free: 2.086 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004193/0.3009, allocations: 181.8 kB / 435.6 MB, free: 1.902 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.962e-05/0.301, allocations: 114.8 kB / 435.7 MB, free: 1.766 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000144/0.3012, allocations: 162.1 kB / 435.8 MB, free: 1.598 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.949e-05/0.3012, allocations: 29.7 kB / 435.9 MB, free: 1.562 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.02e-05/0.3013, allocations: 100.1 kB / 436 MB, free: 1.461 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.41e-05/0.3013, allocations: 19.89 kB / 436 MB, free: 1.441 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.479e-05/0.3013, allocations: 33.72 kB / 436 MB, free: 1.402 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.3015, allocations: 326.8 kB / 436.3 MB, free: 1.074 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.563e-05/0.3015, allocations: 27.92 kB / 436.4 MB, free: 1.047 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001431/0.3017, allocations: 136.3 kB / 436.5 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002166/0.3019, allocations: 178.5 kB / 436.7 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.3019, allocations: 0 / 436.7 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000288/0.3022, allocations: 177.3 kB / 436.8 MB, free: 468 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.3022, allocations: 8 kB / 436.8 MB, free: 460 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.3022, allocations: 4 kB / 436.9 MB, free: 456 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.3022, allocations: 7.938 kB / 436.9 MB, free: 448 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000119/0.3023, allocations: 31.98 kB / 436.9 MB, free: 416 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.211e-05/0.3024, allocations: 11.88 kB / 436.9 MB, free: 404 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.216e-05/0.3024, allocations: 16.44 kB / 436.9 MB, free: 388 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.622e-05/0.3025, allocations: 16 kB / 436.9 MB, free: 372 kB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 8 ($CLKPRE.upSample2.b_super,upSample2.b_super,$CLKPRE.upSample1.b_super,upSample1.b_super,$CLKPRE.upSample2.b,upSample2.b,$CLKPRE.upSample1.b,upSample1.b) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001124/0.3026, allocations: 136.3 kB / 437.1 MB, free: 228 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001893/0.3028, allocations: 113.6 kB / 437.2 MB, free: 108 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.362e-05/0.3028, allocations: 16.72 kB / 437.2 MB, free: 92 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.3028, allocations: 4 kB / 437.2 MB, free: 88 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.3028, allocations: 7.922 kB / 437.2 MB, free: 80 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.3028, allocations: 0 / 437.2 MB, free: 80 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002021/0.303, allocations: 160.6 kB / 437.4 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.303, allocations: 0 / 437.4 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001084/0.3031, allocations: 27.92 kB / 437.4 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.3031, allocations: 4 kB / 437.4 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.602e-05/0.3031, allocations: 11.98 kB / 437.4 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.3031, allocations: 0 / 437.4 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.3031, allocations: 3.938 kB / 437.4 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003032/0.3035, allocations: 253.2 kB / 437.7 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.02e-05/0.3035, allocations: 31.81 kB / 437.7 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.596e-05/0.3035, allocations: 7.984 kB / 437.7 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.953e-05/0.3036, allocations: 7.938 kB / 437.7 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.118e-05/0.3036, allocations: 7.938 kB / 437.7 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.358e-05/0.3037, allocations: 15.94 kB / 437.7 MB, free: 15.49 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.378e-05/0.3038, allocations: 111.2 kB / 437.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3038, allocations: 0 / 437.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002792/0.304, allocations: 20 kB / 437.9 MB, free: 15.36 MB / 350.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: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * 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.000718/0.3048, allocations: 0.8486 MB / 438.7 MB, free: 14.49 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000249/0.305, allocations: 112.8 kB / 438.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.305, allocations: 0 / 438.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.636e-05/0.305, allocations: 4 kB / 438.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004462/0.3055, allocations: 88.08 kB / 438.9 MB, free: 14.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001901/0.3074, allocations: 1.872 MB / 440.8 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.788e-05/0.3075, allocations: 102.3 kB / 440.9 MB, free: 12.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.585e-05/0.3075, allocations: 13.42 kB / 440.9 MB, free: 12.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.693e-05/0.3076, allocations: 39.42 kB / 440.9 MB, free: 12.05 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3076, allocations: 0 / 440.9 MB, free: 12.05 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02973/0.3373, allocations: 3.416 MB / 444.3 MB, free: 8.797 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.75/11.09, allocations: 7.938 kB / 444.3 MB, free: 8.789 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.78998e-05 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/UpSample1/UpSample1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable upSample1.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.csv. Warning: Get data of variable upSample1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.csv failed! Error: Could not read variable upSample2.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.csv. Warning: Get data of variable upSample2.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,upSample1.y,upSample2.y,add.y Variables in the result:time,add.u1,add.u2,add.y,sample1.y,sine.y [Calling sys.exit(0), Time elapsed: 13.667388153000502]