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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002151/0.002151, allocations: 104.7 kB / 16.92 MB, free: 5.777 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002314/0.002314, allocations: 187.3 kB / 17.85 MB, free: 5.168 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.526/1.526, allocations: 222.9 MB / 241.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.00122, allocations: 51.02 kB / 300.7 MB, free: 5.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1176, allocations: 49.44 MB / 350.2 MB, free: 4.32 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1): time 0.003563/0.1213, allocations: 1.728 MB / 351.9 MB, free: 2.57 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001094/0.1224, allocations: 0.5453 MB / 352.4 MB, free: 2.02 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001372/0.1225, allocations: 4 kB / 352.4 MB, free: 2.016 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.51e-05/0.1226, allocations: 11.86 kB / 352.5 MB, free: 2.004 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001759/0.1228, allocations: 19.81 kB / 352.5 MB, free: 1.984 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004604/0.1233, allocations: 91.7 kB / 352.6 MB, free: 1.895 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001645/0.1235, allocations: 87.77 kB / 352.7 MB, free: 1.809 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001434/0.1236, allocations: 33.05 kB / 352.7 MB, free: 1.777 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001217/0.1237, allocations: 43.84 kB / 352.7 MB, free: 1.734 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.828e-05/0.1238, allocations: 43.77 kB / 352.8 MB, free: 1.691 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.85e-05/0.1239, allocations: 8 kB / 352.8 MB, free: 1.684 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.068e-05/0.1239, allocations: 8 kB / 352.8 MB, free: 1.676 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.401e-05/0.124, allocations: 23.86 kB / 352.8 MB, free: 1.652 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.168e-05/0.1241, allocations: 51.67 kB / 352.9 MB, free: 1.602 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001937/0.1243, allocations: 103.6 kB / 353 MB, free: 1.5 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.1243, allocations: 3.984 kB / 353 MB, free: 1.496 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1243, allocations: 0 / 353 MB, free: 1.496 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.894e-06/0.1243, allocations: 4 kB / 353 MB, free: 1.492 MB / 286.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.0006575/0.125, allocations: 431.2 kB / 353.4 MB, free: 1.023 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.125, allocations: 8.031 kB / 353.4 MB, free: 1.016 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.209e-05/0.1251, allocations: 38.75 kB / 353.4 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.479e-05/0.1251, allocations: 16.75 kB / 353.5 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002461/0.1254, allocations: 216 kB / 353.7 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.585e-05/0.1254, allocations: 8.375 kB / 353.7 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.208e-05/0.1254, allocations: 12.38 kB / 353.7 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005044/0.1259, allocations: 275.1 kB / 354 MB, free: 404 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.126, allocations: 4 kB / 354 MB, free: 400 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.363e-05/0.126, allocations: 0 / 354 MB, free: 400 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.126, allocations: 0 / 354 MB, free: 400 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001549/0.1261, allocations: 55.91 kB / 354 MB, free: 344 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003883/0.1265, allocations: 314.4 kB / 354.3 MB, free: 15.97 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000238/0.1268, allocations: 131.9 kB / 354.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001225/0.1269, allocations: 78.61 kB / 354.5 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.018e-05/0.127, allocations: 8.141 kB / 354.5 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.863e-05/0.127, allocations: 34.56 kB / 354.6 MB, free: 15.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.353e-06/0.127, allocations: 0 / 354.6 MB, free: 15.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004282/0.1274, allocations: 173.3 kB / 354.7 MB, free: 15.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001481/0.1276, allocations: 114.8 kB / 354.8 MB, free: 15.37 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001529/0.1278, allocations: 162 kB / 355 MB, free: 15.2 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.964e-05/0.1278, allocations: 25.7 kB / 355 MB, free: 15.17 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.681e-05/0.1279, allocations: 92.14 kB / 355.1 MB, free: 15.08 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.371e-05/0.1279, allocations: 19.8 kB / 355.1 MB, free: 15.06 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.58e-05/0.128, allocations: 33.72 kB / 355.2 MB, free: 15.02 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.1281, allocations: 330.8 kB / 355.5 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.287e-05/0.1282, allocations: 27.98 kB / 355.5 MB, free: 14.66 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001633/0.1284, allocations: 134.1 kB / 355.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002419/0.1286, allocations: 178.3 kB / 355.8 MB, free: 14.25 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.1287, allocations: 4 kB / 355.8 MB, free: 14.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003232/0.129, allocations: 181.5 kB / 356 MB, free: 14.07 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.336e-05/0.129, allocations: 12.03 kB / 356 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.129, allocations: 4 kB / 356 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.535e-05/0.1291, allocations: 4 kB / 356 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001358/0.1292, allocations: 31.92 kB / 356.1 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.894e-05/0.1293, allocations: 11.92 kB / 356.1 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.776e-05/0.1294, allocations: 12 kB / 356.1 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.621e-05/0.1294, allocations: 8 kB / 356.1 MB, free: 13.98 MB / 302.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.0001434/0.1295, allocations: 137.7 kB / 356.2 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00021/0.1297, allocations: 121.4 kB / 356.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.225e-05/0.1298, allocations: 24.7 kB / 356.4 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.1298, allocations: 4 kB / 356.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.326e-06/0.1298, allocations: 7.875 kB / 356.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.1299, allocations: 0 / 356.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00027/0.1301, allocations: 201.5 kB / 356.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.1301, allocations: 0 / 356.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001166/0.1303, allocations: 27.92 kB / 356.6 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.1303, allocations: 0 / 356.6 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.529e-05/0.1303, allocations: 4 kB / 356.6 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/0.1303, allocations: 4 kB / 356.6 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.1303, allocations: 7.938 kB / 356.6 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003313/0.1307, allocations: 249 kB / 356.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.741e-05/0.1308, allocations: 100.9 kB / 357 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.845e-05/0.1308, allocations: 8 kB / 357 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.247e-05/0.1309, allocations: 3.984 kB / 357 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.767e-05/0.1309, allocations: 11.94 kB / 357 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.363e-05/0.131, allocations: 8 kB / 357 MB, free: 12.97 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001067/0.1311, allocations: 111.2 kB / 357.1 MB, free: 12.86 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1311, allocations: 0 / 357.1 MB, free: 12.86 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002946/0.1314, allocations: 20 kB / 357.1 MB, free: 12.84 MB / 302.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.0008698/0.1323, allocations: 0.8458 MB / 358 MB, free: 11.97 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003173/0.1326, allocations: 120.6 kB / 358.1 MB, free: 11.85 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.1326, allocations: 256 / 358.1 MB, free: 11.85 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.741e-05/0.1327, allocations: 19.98 kB / 358.1 MB, free: 11.83 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006024/0.1333, allocations: 75.88 kB / 358.2 MB, free: 11.76 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002208/0.1355, allocations: 1.85 MB / 360 MB, free: 9.707 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004176/0.1359, allocations: 0.7163 MB / 360.7 MB, free: 8.965 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.09e-05/0.136, allocations: 17.5 kB / 360.8 MB, free: 8.949 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.394e-05/0.1361, allocations: 39.36 kB / 360.8 MB, free: 8.91 MB / 302.1 MB Notification: Performance of SimCode: time 6.82e-07/0.1361, allocations: 0 / 360.8 MB, free: 8.91 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02055/0.1566, allocations: 2.67 MB / 363.5 MB, free: 6.336 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.09/8.247, allocations: 11.62 kB / 363.5 MB, free: 6.328 MB / 302.1 MB (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 3.6e-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) 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) "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! " 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