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.001828/0.001828, allocations: 107.5 kB / 20.44 MB, free: 1.066 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.002139/0.002139, allocations: 186 kB / 23.7 MB, free: 4.191 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.436/1.436, allocations: 225.7 MB / 252.5 MB, free: 12.86 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.001586/0.001586, allocations: 51.92 kB / 370.4 MB, free: 9.695 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2334/0.2349, allocations: 52.18 MB / 422.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1): time 0.003063/0.238, allocations: 1.733 MB / 424.3 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00103/0.239, allocations: 0.5026 MB / 424.8 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001011/0.2391, allocations: 7.938 kB / 424.8 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.629e-05/0.2392, allocations: 7.875 kB / 424.8 MB, free: 12.13 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001394/0.2393, allocations: 19.84 kB / 424.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003999/0.2397, allocations: 103.6 kB / 425 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001487/0.2399, allocations: 83.77 kB / 425 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001191/0.24, allocations: 22.98 kB / 425.1 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001072/0.2401, allocations: 47.78 kB / 425.1 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.974e-05/0.2402, allocations: 35.78 kB / 425.1 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.419e-05/0.2402, allocations: 8 kB / 425.1 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.863e-05/0.2402, allocations: 4 kB / 425.2 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.486e-05/0.2403, allocations: 35.83 kB / 425.2 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.309e-05/0.2403, allocations: 39.8 kB / 425.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001933/0.2405, allocations: 107.4 kB / 425.3 MB, free: 11.63 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.2405, allocations: 8 kB / 425.3 MB, free: 11.62 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2405, allocations: 4 kB / 425.3 MB, free: 11.62 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.2406, allocations: 0 / 425.3 MB, free: 11.62 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.0005596/0.2411, allocations: 345.7 kB / 425.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.2412, allocations: 12.03 kB / 425.7 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.346e-05/0.2412, allocations: 42.75 kB / 425.7 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.974e-05/0.2412, allocations: 20.78 kB / 425.8 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003204/0.2416, allocations: 162.3 kB / 425.9 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.582e-05/0.2416, allocations: 12.31 kB / 425.9 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.746e-05/0.2416, allocations: 8.375 kB / 425.9 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005143/0.2421, allocations: 273.2 kB / 426.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.2421, allocations: 0 / 426.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/0.2421, allocations: 4 kB / 426.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.2422, allocations: 0 / 426.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001357/0.2423, allocations: 51.91 kB / 426.3 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003652/0.2427, allocations: 265.6 kB / 426.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002527/0.2429, allocations: 139.8 kB / 426.6 MB, free: 10.15 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001231/0.243, allocations: 66.62 kB / 426.7 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.73e-05/0.2431, allocations: 3.984 kB / 426.7 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.283e-05/0.2431, allocations: 34.56 kB / 426.8 MB, free: 10.03 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.363e-06/0.2431, allocations: 3.938 kB / 426.8 MB, free: 10.03 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004222/0.2435, allocations: 173.6 kB / 426.9 MB, free: 9.852 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.574e-05/0.2436, allocations: 118.8 kB / 427 MB, free: 9.711 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001421/0.2438, allocations: 150.2 kB / 427.2 MB, free: 9.555 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.2e-05/0.2438, allocations: 25.7 kB / 427.2 MB, free: 9.523 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.769e-05/0.2438, allocations: 96.25 kB / 427.3 MB, free: 9.426 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.635e-05/0.2439, allocations: 19.91 kB / 427.3 MB, free: 9.406 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.976e-05/0.2439, allocations: 41.66 kB / 427.4 MB, free: 9.359 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.2441, allocations: 322.8 kB / 427.7 MB, free: 9.035 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.508e-05/0.2441, allocations: 27.98 kB / 427.7 MB, free: 9.008 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001421/0.2443, allocations: 130.6 kB / 427.8 MB, free: 8.828 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002333/0.2445, allocations: 178.3 kB / 428 MB, free: 8.602 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.2445, allocations: 4 kB / 428 MB, free: 8.598 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002997/0.2448, allocations: 177.7 kB / 428.2 MB, free: 8.418 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.2448, allocations: 12.06 kB / 428.2 MB, free: 8.406 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.455e-06/0.2448, allocations: 4 kB / 428.2 MB, free: 8.402 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.2448, allocations: 4 kB / 428.2 MB, free: 8.398 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001282/0.245, allocations: 27.92 kB / 428.2 MB, free: 8.371 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.314e-05/0.245, allocations: 11.94 kB / 428.2 MB, free: 8.359 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.688e-05/0.2451, allocations: 19.83 kB / 428.3 MB, free: 8.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.455e-05/0.2451, allocations: 8 kB / 428.3 MB, free: 8.332 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.0001278/0.2452, allocations: 140.7 kB / 428.4 MB, free: 8.188 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001864/0.2454, allocations: 113.9 kB / 428.5 MB, free: 8.07 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.012e-05/0.2455, allocations: 20.72 kB / 428.5 MB, free: 8.051 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.2455, allocations: 8.078 kB / 428.6 MB, free: 8.043 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.726e-06/0.2455, allocations: 11.88 kB / 428.6 MB, free: 8.031 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.2455, allocations: 3.984 kB / 428.6 MB, free: 8.027 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001995/0.2457, allocations: 156.6 kB / 428.7 MB, free: 7.832 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2457, allocations: 3.938 kB / 428.7 MB, free: 7.828 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001088/0.2458, allocations: 23.98 kB / 428.7 MB, free: 7.805 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-06/0.2458, allocations: 4 kB / 428.8 MB, free: 7.801 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.024e-05/0.2458, allocations: 0 / 428.8 MB, free: 7.801 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.2458, allocations: 3.984 kB / 428.8 MB, free: 7.797 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.911e-06/0.2458, allocations: 7.938 kB / 428.8 MB, free: 7.789 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000311/0.2461, allocations: 255.6 kB / 429 MB, free: 7.52 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.815e-05/0.2462, allocations: 23.89 kB / 429 MB, free: 7.496 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.795e-05/0.2462, allocations: 8 kB / 429 MB, free: 7.488 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.837e-05/0.2463, allocations: 15.98 kB / 429.1 MB, free: 7.473 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.755e-05/0.2463, allocations: 3.938 kB / 429.1 MB, free: 7.469 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.097e-05/0.2463, allocations: 4 kB / 429.1 MB, free: 7.465 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.416e-05/0.2464, allocations: 122 kB / 429.2 MB, free: 7.348 MB / 334.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.2464, allocations: 0 / 429.2 MB, free: 7.348 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002794/0.2467, allocations: 20 kB / 429.2 MB, free: 7.328 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.0007594/0.2475, allocations: 0.8442 MB / 430 MB, free: 6.453 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002457/0.2477, allocations: 107.8 kB / 430.2 MB, free: 6.348 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.2477, allocations: 1.062 kB / 430.2 MB, free: 6.348 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.694e-05/0.2478, allocations: 11.92 kB / 430.2 MB, free: 6.336 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004427/0.2482, allocations: 87.44 kB / 430.3 MB, free: 6.254 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002038/0.2502, allocations: 1.865 MB / 432.1 MB, free: 4.199 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001154/0.2504, allocations: 110.2 kB / 432.2 MB, free: 4.066 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.972e-05/0.2504, allocations: 9.422 kB / 432.2 MB, free: 4.051 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.208e-05/0.2505, allocations: 35.42 kB / 432.3 MB, free: 4.02 MB / 334.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2505, allocations: 0 / 432.3 MB, free: 4.02 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02971/0.2802, allocations: 3.343 MB / 435.6 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.61, allocations: 8 kB / 435.6 MB, free: 0.8125 MB / 334.1 MB " [Timeout remaining time 648] (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: 14.166960696224123]