Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001327/0.001327, allocations: 109.5 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001875/0.001875, allocations: 188.2 kB / 23.72 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.522/1.522, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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.UpSample1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001603/0.001603, allocations: 47.92 kB / 370.5 MB, free: 9.828 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2646/0.2662, allocations: 52.2 MB / 422.6 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1): time 0.003331/0.2696, allocations: 1.767 MB / 424.4 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001028/0.2706, allocations: 0.5493 MB / 425 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.53e-05/0.2707, allocations: 7.938 kB / 425 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.309e-05/0.2707, allocations: 7.875 kB / 425 MB, free: 12.22 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001458/0.2709, allocations: 15.86 kB / 425 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004033/0.2713, allocations: 99.7 kB / 425.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001562/0.2714, allocations: 87.77 kB / 425.2 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000112/0.2716, allocations: 17.31 kB / 425.2 MB, free: 12 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001006/0.2717, allocations: 47.77 kB / 425.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.607e-05/0.2717, allocations: 47.78 kB / 425.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.37e-05/0.2718, allocations: 4 kB / 425.3 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.623e-05/0.2718, allocations: 8 kB / 425.3 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.362e-05/0.2719, allocations: 31.84 kB / 425.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.16e-05/0.2719, allocations: 47.67 kB / 425.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001838/0.2721, allocations: 111.9 kB / 425.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.2721, allocations: 0 / 425.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.2721, allocations: 0 / 425.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.121e-06/0.2721, allocations: 0 / 425.5 MB, free: 11.71 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.0006043/0.2727, allocations: 357.7 kB / 425.8 MB, free: 11.33 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.2728, allocations: 8.031 kB / 425.8 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.211e-05/0.2728, allocations: 42.73 kB / 425.9 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.519e-05/0.2728, allocations: 16.84 kB / 425.9 MB, free: 11.26 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002911/0.2731, allocations: 170.1 kB / 426.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.494e-05/0.2732, allocations: 8.375 kB / 426.1 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.993e-05/0.2732, allocations: 12.38 kB / 426.1 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005166/0.2737, allocations: 265.2 kB / 426.3 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.2737, allocations: 3.938 kB / 426.4 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.2737, allocations: 4 kB / 426.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.459e-06/0.2737, allocations: 0 / 426.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001397/0.2739, allocations: 55.91 kB / 426.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003787/0.2742, allocations: 277.5 kB / 426.7 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002495/0.2745, allocations: 131.9 kB / 426.8 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001321/0.2746, allocations: 62.62 kB / 426.9 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.979e-05/0.2747, allocations: 12.12 kB / 426.9 MB, free: 10.15 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.515e-05/0.2747, allocations: 34.56 kB / 426.9 MB, free: 10.11 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.293e-06/0.2747, allocations: 0 / 426.9 MB, free: 10.11 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004296/0.2751, allocations: 173.4 kB / 427.1 MB, free: 9.93 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.112e-05/0.2752, allocations: 118.8 kB / 427.2 MB, free: 9.789 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001558/0.2754, allocations: 153.1 kB / 427.4 MB, free: 9.633 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.072e-05/0.2754, allocations: 33.83 kB / 427.4 MB, free: 9.594 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.754e-05/0.2755, allocations: 92.12 kB / 427.5 MB, free: 9.5 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.423e-05/0.2755, allocations: 15.91 kB / 427.5 MB, free: 9.484 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.556e-05/0.2755, allocations: 37.7 kB / 427.5 MB, free: 9.441 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.2757, allocations: 326.8 kB / 427.8 MB, free: 9.113 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.729e-05/0.2758, allocations: 23.98 kB / 427.9 MB, free: 9.09 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001519/0.2759, allocations: 130.6 kB / 428 MB, free: 8.91 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002323/0.2761, allocations: 182.3 kB / 428.2 MB, free: 8.68 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.2761, allocations: 4 kB / 428.2 MB, free: 8.676 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003015/0.2764, allocations: 181.2 kB / 428.4 MB, free: 8.492 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.2765, allocations: 8.531 kB / 428.4 MB, free: 8.484 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.2765, allocations: 8 kB / 428.4 MB, free: 8.477 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.2765, allocations: 4 kB / 428.4 MB, free: 8.473 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001204/0.2766, allocations: 31.92 kB / 428.4 MB, free: 8.441 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.159e-05/0.2766, allocations: 8.625 kB / 428.4 MB, free: 8.434 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.925e-05/0.2767, allocations: 19.89 kB / 428.4 MB, free: 8.414 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.699e-05/0.2767, allocations: 11.98 kB / 428.4 MB, free: 8.402 MB / 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.0001242/0.2768, allocations: 137.8 kB / 428.6 MB, free: 8.258 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000189/0.277, allocations: 117.5 kB / 428.7 MB, free: 8.137 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.08e-05/0.2771, allocations: 24.72 kB / 428.7 MB, free: 8.113 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.2771, allocations: 4 kB / 428.7 MB, free: 8.109 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.458e-06/0.2771, allocations: 7.938 kB / 428.7 MB, free: 8.102 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.2771, allocations: 3.984 kB / 428.7 MB, free: 8.098 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002032/0.2773, allocations: 164.6 kB / 428.9 MB, free: 7.895 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.2773, allocations: 4 kB / 428.9 MB, free: 7.891 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000112/0.2774, allocations: 27.92 kB / 428.9 MB, free: 7.863 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.2774, allocations: 4 kB / 428.9 MB, free: 7.859 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.106e-05/0.2774, allocations: 3.984 kB / 428.9 MB, free: 7.855 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/0.2774, allocations: 4 kB / 428.9 MB, free: 7.852 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.2774, allocations: 7.938 kB / 428.9 MB, free: 7.844 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003131/0.2778, allocations: 249 kB / 429.2 MB, free: 7.578 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.929e-05/0.2778, allocations: 27.88 kB / 429.2 MB, free: 7.551 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.552e-05/0.2778, allocations: 8 kB / 429.2 MB, free: 7.543 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.271e-05/0.2779, allocations: 0 / 429.2 MB, free: 7.543 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.164e-05/0.278, allocations: 15.94 kB / 429.2 MB, free: 7.527 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.688e-06/0.278, allocations: 4 kB / 429.2 MB, free: 7.523 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.603e-05/0.2781, allocations: 115.1 kB / 429.4 MB, free: 7.41 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2781, allocations: 0 / 429.4 MB, free: 7.41 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002855/0.2784, allocations: 24 kB / 429.4 MB, free: 7.387 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: 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.0007453/0.2791, allocations: 0.8428 MB / 430.2 MB, free: 6.512 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002413/0.2793, allocations: 107.7 kB / 430.3 MB, free: 6.41 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.2793, allocations: 0 / 430.3 MB, free: 6.41 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.443e-05/0.2794, allocations: 8.125 kB / 430.3 MB, free: 6.402 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004509/0.2798, allocations: 92.05 kB / 430.4 MB, free: 6.312 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002003/0.2818, allocations: 1.861 MB / 432.3 MB, free: 4.262 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003474/0.2822, allocations: 0.724 MB / 433 MB, free: 3.512 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.905e-05/0.2822, allocations: 13.52 kB / 433 MB, free: 3.492 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.603e-05/0.2823, allocations: 35.42 kB / 433.1 MB, free: 3.461 MB / 334.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2823, allocations: 0 / 433.1 MB, free: 3.461 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02894/0.3112, allocations: 2.968 MB / 436 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.87/11.19, allocations: 0 / 436 MB, free: 0.6289 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/UpSample1/UpSample1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.csv. Warning: Get data of variable upSample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.csv failed! Error: Could not read variable upSample2.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.csv. Warning: Get data of variable upSample2.y from file Modelica_4.0.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.805294481000601]