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.0009217/0.0009217, allocations: 76.08 kB / 20.67 MB, free: 3.895 MB / 18.57 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.00119/0.00119, allocations: 149.1 kB / 23.93 MB, free: 0.6367 MB / 18.57 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 0.9281/0.9281, allocations: 173.4 MB / 200.4 MB, free: 9.453 MB / 186.7 MB " [Timeout remaining time 179] 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 2.996e-06/2.996e-06, allocations: 3.984 kB / 318.4 MB, free: 6.367 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.089e-05/1.389e-05, allocations: 2.281 kB / 318.4 MB, free: 6.363 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1): time 0.002097/0.002111, allocations: 1.731 MB / 320.2 MB, free: 4.621 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007093/0.00282, allocations: 0.5063 MB / 320.7 MB, free: 4.109 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.929e-05/0.002919, allocations: 3.938 kB / 320.7 MB, free: 4.105 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 5.205e-05/0.002971, allocations: 15.81 kB / 320.7 MB, free: 4.09 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001584/0.00313, allocations: 27.72 kB / 320.7 MB, free: 4.062 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000317/0.003447, allocations: 86.45 kB / 320.8 MB, free: 3.98 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001397/0.003587, allocations: 99.69 kB / 320.9 MB, free: 3.883 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001166/0.003703, allocations: 25.22 kB / 320.9 MB, free: 3.855 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.691e-05/0.0038, allocations: 59.88 kB / 321 MB, free: 3.797 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.021e-05/0.00386, allocations: 27.89 kB / 321 MB, free: 3.77 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.697e-05/0.003887, allocations: 8 kB / 321 MB, free: 3.762 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.34e-05/0.003901, allocations: 8 kB / 321 MB, free: 3.754 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.655e-05/0.003957, allocations: 31.86 kB / 321.1 MB, free: 3.723 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.997e-05/0.003997, allocations: 23.91 kB / 321.1 MB, free: 3.699 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001504/0.004148, allocations: 107.6 kB / 321.2 MB, free: 3.594 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.185e-06/0.00415, allocations: 0 / 321.2 MB, free: 3.594 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.004151, allocations: 7.938 kB / 321.2 MB, free: 3.586 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.568e-06/0.004156, allocations: 4 kB / 321.2 MB, free: 3.582 MB / 282.7 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.0004444/0.0046, allocations: 353 kB / 321.6 MB, free: 3.211 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/0.004644, allocations: 8.922 kB / 321.6 MB, free: 3.203 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.001e-05/0.004684, allocations: 46.75 kB / 321.6 MB, free: 3.148 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.271e-05/0.004717, allocations: 20.83 kB / 321.6 MB, free: 3.129 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001896/0.004906, allocations: 153.5 kB / 321.8 MB, free: 2.953 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.115e-05/0.004928, allocations: 12.38 kB / 321.8 MB, free: 2.941 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.331e-05/0.004941, allocations: 12.38 kB / 321.8 MB, free: 2.93 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003633/0.005304, allocations: 273.1 kB / 322.1 MB, free: 2.645 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.005313, allocations: 192 / 322.1 MB, free: 2.645 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.041e-05/0.005323, allocations: 8.125 kB / 322.1 MB, free: 2.637 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.715e-06/0.005331, allocations: 7.984 kB / 322.1 MB, free: 2.629 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.289e-05/0.005414, allocations: 47.97 kB / 322.1 MB, free: 2.582 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002663/0.00568, allocations: 257.6 kB / 322.4 MB, free: 2.281 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001731/0.005853, allocations: 127.9 kB / 322.5 MB, free: 2.129 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.58e-05/0.005929, allocations: 66.56 kB / 322.6 MB, free: 2.055 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.623e-05/0.005955, allocations: 11.98 kB / 322.6 MB, free: 2.043 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.708e-05/0.005982, allocations: 42.5 kB / 322.6 MB, free: 1.992 MB / 282.7 MB Notification: Performance of pre-optimization done (n=17): time 1.042e-06/0.005983, allocations: 0 / 322.6 MB, free: 1.992 MB / 282.7 MB Notification: Performance of matching and sorting (n=17): time 0.0002698/0.006253, allocations: 173.4 kB / 322.8 MB, free: 1.816 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.623e-05/0.006319, allocations: 114.8 kB / 322.9 MB, free: 1.68 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.543e-05/0.006415, allocations: 150.3 kB / 323.1 MB, free: 1.523 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.123e-05/0.006426, allocations: 29.7 kB / 323.1 MB, free: 1.488 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.007e-05/0.006466, allocations: 96.12 kB / 323.2 MB, free: 1.391 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.543e-05/0.006482, allocations: 12.09 kB / 323.2 MB, free: 1.379 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.147e-05/0.006513, allocations: 29.78 kB / 323.2 MB, free: 1.344 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.477e-05/0.006598, allocations: 318.8 kB / 323.5 MB, free: 1.023 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.275e-05/0.006631, allocations: 19.98 kB / 323.5 MB, free: 1.004 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.082e-05/0.006671, allocations: 56.22 kB / 323.6 MB, free: 0.9336 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.895e-05/0.00674, allocations: 60.22 kB / 323.7 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.006742, allocations: 4 kB / 323.7 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001054/0.006848, allocations: 101.5 kB / 323.8 MB, free: 0.75 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.006862, allocations: 8 kB / 323.8 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.006868, allocations: 320 / 323.8 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.006882, allocations: 3.984 kB / 323.8 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.928e-05/0.006941, allocations: 15.88 kB / 323.8 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.006946, allocations: 0 / 323.8 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.665e-05/0.006973, allocations: 4.156 kB / 323.8 MB, free: 0.7188 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.456e-06/0.006981, allocations: 11.98 kB / 323.8 MB, free: 0.707 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (9): * Single equations (assignments): 9 * 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 8.185e-05/0.007063, allocations: 125.8 kB / 323.9 MB, free: 0.5742 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001239/0.007187, allocations: 117.5 kB / 324 MB, free: 464 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.391e-05/0.007221, allocations: 24.7 kB / 324.1 MB, free: 440 kB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.007224, allocations: 4 kB / 324.1 MB, free: 436 kB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.007229, allocations: 0.6562 kB / 324.1 MB, free: 436 kB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.341e-06/0.007235, allocations: 7.984 kB / 324.1 MB, free: 428 kB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001292/0.007364, allocations: 156.6 kB / 324.2 MB, free: 228 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.007367, allocations: 3.938 kB / 324.2 MB, free: 224 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.723e-05/0.007424, allocations: 31.98 kB / 324.3 MB, free: 192 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.007426, allocations: 0 / 324.3 MB, free: 192 kB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.175e-05/0.007438, allocations: 8 kB / 324.3 MB, free: 184 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.007439, allocations: 3.938 kB / 324.3 MB, free: 180 kB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.007441, allocations: 3.984 kB / 324.3 MB, free: 176 kB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001948/0.007636, allocations: 251.9 kB / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.142e-05/0.007677, allocations: 27.83 kB / 324.6 MB, free: 15.88 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.745e-05/0.007694, allocations: 8 kB / 324.6 MB, free: 15.87 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.3e-05/0.007737, allocations: 7.984 kB / 324.6 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.189e-05/0.007769, allocations: 4 kB / 324.6 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.041e-06/0.007775, allocations: 8 kB / 324.6 MB, free: 15.85 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.214e-05/0.007837, allocations: 118.3 kB / 324.7 MB, free: 15.73 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.007838, allocations: 0 / 324.7 MB, free: 15.73 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001761/0.008014, allocations: 12 kB / 324.7 MB, free: 15.72 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: 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.0004389/0.008453, allocations: 0.8459 MB / 325.6 MB, free: 14.85 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001345/0.008587, allocations: 71.88 kB / 325.6 MB, free: 14.78 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.654e-06/0.008589, allocations: 4.312 kB / 325.6 MB, free: 14.77 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.963e-05/0.008608, allocations: 12 kB / 325.6 MB, free: 14.76 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003248/0.008933, allocations: 67.92 kB / 325.7 MB, free: 14.7 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001054/0.009987, allocations: 1.589 MB / 327.3 MB, free: 12.98 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.16e-05/0.01006, allocations: 105.8 kB / 327.4 MB, free: 12.86 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.812e-05/0.01009, allocations: 5.359 kB / 327.4 MB, free: 12.85 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.384e-05/0.01014, allocations: 32.48 kB / 327.4 MB, free: 12.82 MB / 298.7 MB Notification: Performance of SimCode: time 6.81e-07/0.01014, allocations: 0 / 327.4 MB, free: 12.82 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0168/0.02694, allocations: 3.354 MB / 330.8 MB, free: 9.594 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.747/6.774, allocations: 7.25 kB / 330.8 MB, free: 9.59 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/UpSample1/UpSample1.csv","/var/lib/jenkins/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: 8.634656934067607]