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.001268/0.001268, allocations: 124 kB / 17.79 MB, free: 5.266 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.001311/0.001311, allocations: 190.9 kB / 20.73 MB, free: 2.328 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.482/1.482, allocations: 225.6 MB / 249.1 MB, free: 3.617 MB / 190.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.001515/0.001515, allocations: 55.86 kB / 365.6 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09928/0.1008, allocations: 52.14 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1): time 0.002985/0.1038, allocations: 1.763 MB / 419.5 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009638/0.1047, allocations: 0.5376 MB / 420.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.538e-05/0.1048, allocations: 11.88 kB / 420.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.208e-05/0.1049, allocations: 7.875 kB / 420.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001281/0.105, allocations: 19.84 kB / 420.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003701/0.1054, allocations: 91.78 kB / 420.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001498/0.1055, allocations: 95.69 kB / 420.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001017/0.1056, allocations: 21.11 kB / 420.3 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.786e-05/0.1057, allocations: 43.78 kB / 420.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.248e-05/0.1058, allocations: 43.78 kB / 420.4 MB, free: 9.977 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.052e-05/0.1058, allocations: 4 kB / 420.4 MB, free: 9.973 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.751e-05/0.1058, allocations: 8 kB / 420.4 MB, free: 9.965 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.673e-05/0.1059, allocations: 31.91 kB / 420.5 MB, free: 9.934 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.945e-05/0.1059, allocations: 51.66 kB / 420.5 MB, free: 9.883 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001768/0.1061, allocations: 111.4 kB / 420.6 MB, free: 9.773 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1061, allocations: 0 / 420.6 MB, free: 9.773 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1061, allocations: 0 / 420.6 MB, free: 9.773 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.408e-06/0.1061, allocations: 0 / 420.6 MB, free: 9.773 MB / 350.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.0006069/0.1067, allocations: 434.8 kB / 421 MB, free: 9.301 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.1068, allocations: 8.031 kB / 421 MB, free: 9.293 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.422e-05/0.1068, allocations: 46.73 kB / 421.1 MB, free: 9.238 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.965e-05/0.1069, allocations: 20.84 kB / 421.1 MB, free: 9.219 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002918/0.1072, allocations: 212.1 kB / 421.3 MB, free: 8.973 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.615e-05/0.1072, allocations: 8.375 kB / 421.3 MB, free: 8.965 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.723e-05/0.1072, allocations: 8.375 kB / 421.3 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005224/0.1077, allocations: 279.3 kB / 421.6 MB, free: 8.664 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.1077, allocations: 0 / 421.6 MB, free: 8.664 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.375e-05/0.1078, allocations: 4 kB / 421.6 MB, free: 8.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.034e-06/0.1078, allocations: 8 kB / 421.6 MB, free: 8.652 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00016/0.1079, allocations: 51.91 kB / 421.7 MB, free: 8.602 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003856/0.1083, allocations: 298.5 kB / 422 MB, free: 8.254 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002523/0.1086, allocations: 131.7 kB / 422.1 MB, free: 8.098 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001409/0.1087, allocations: 74.72 kB / 422.2 MB, free: 8.016 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.826e-05/0.1087, allocations: 4 kB / 422.2 MB, free: 8.012 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.407e-05/0.1088, allocations: 34.56 kB / 422.2 MB, free: 7.969 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.353e-06/0.1088, allocations: 4 kB / 422.2 MB, free: 7.965 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004464/0.1092, allocations: 173.6 kB / 422.4 MB, free: 7.789 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/0.1093, allocations: 114.8 kB / 422.5 MB, free: 7.652 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001469/0.1095, allocations: 153.5 kB / 422.6 MB, free: 7.496 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.67e-05/0.1095, allocations: 33.7 kB / 422.7 MB, free: 7.457 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.743e-05/0.1095, allocations: 92.12 kB / 422.8 MB, free: 7.363 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.99e-05/0.1096, allocations: 20.02 kB / 422.8 MB, free: 7.344 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.331e-05/0.1096, allocations: 41.66 kB / 422.8 MB, free: 7.297 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.1098, allocations: 326.8 kB / 423.1 MB, free: 6.969 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.599e-05/0.1098, allocations: 27.97 kB / 423.2 MB, free: 6.941 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001541/0.11, allocations: 130.6 kB / 423.3 MB, free: 6.762 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002263/0.1102, allocations: 174.3 kB / 423.5 MB, free: 6.539 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.1102, allocations: 0 / 423.5 MB, free: 6.539 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003034/0.1105, allocations: 181.2 kB / 423.6 MB, free: 6.355 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.1106, allocations: 11.94 kB / 423.7 MB, free: 6.344 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.1106, allocations: 4 kB / 423.7 MB, free: 6.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.1106, allocations: 4 kB / 423.7 MB, free: 6.336 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001225/0.1107, allocations: 24.89 kB / 423.7 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.456e-05/0.1107, allocations: 19.88 kB / 423.7 MB, free: 6.293 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.755e-05/0.1108, allocations: 19.88 kB / 423.7 MB, free: 6.273 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.443e-05/0.1108, allocations: 8 kB / 423.7 MB, free: 6.266 MB / 350.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.00012/0.1109, allocations: 143.7 kB / 423.9 MB, free: 6.117 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001999/0.1111, allocations: 117.9 kB / 424 MB, free: 5.996 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.833e-05/0.1112, allocations: 24.7 kB / 424 MB, free: 5.969 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.1112, allocations: 0 / 424 MB, free: 5.969 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.1112, allocations: 7.938 kB / 424 MB, free: 5.961 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.1112, allocations: 7.938 kB / 424 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00021/0.1114, allocations: 197.6 kB / 424.2 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.1114, allocations: 0 / 424.2 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001131/0.1115, allocations: 27.92 kB / 424.2 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.1115, allocations: 0 / 424.2 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.472e-05/0.1115, allocations: 4 kB / 424.3 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1115, allocations: 0 / 424.3 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.267e-06/0.1115, allocations: 4.016 kB / 424.3 MB, free: 5.676 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003291/0.1119, allocations: 253 kB / 424.5 MB, free: 5.406 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.848e-05/0.112, allocations: 112.9 kB / 424.6 MB, free: 5.277 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.425e-05/0.112, allocations: 4 kB / 424.6 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.773e-05/0.1121, allocations: 8 kB / 424.6 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.707e-05/0.1121, allocations: 7.922 kB / 424.6 MB, free: 5.258 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.828e-06/0.1121, allocations: 4 kB / 424.6 MB, free: 5.254 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.041e-05/0.1122, allocations: 119.1 kB / 424.8 MB, free: 5.137 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1122, allocations: 4 kB / 424.8 MB, free: 5.133 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002825/0.1125, allocations: 20 kB / 424.8 MB, free: 5.113 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.0007833/0.1133, allocations: 0.8525 MB / 425.6 MB, free: 4.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002772/0.1135, allocations: 103.8 kB / 425.7 MB, free: 4.129 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.1135, allocations: 0 / 425.7 MB, free: 4.129 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.288e-05/0.1136, allocations: 13.05 kB / 425.7 MB, free: 4.117 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004823/0.1141, allocations: 76.19 kB / 425.8 MB, free: 4.043 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002064/0.1161, allocations: 1.87 MB / 427.7 MB, free: 1.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003276/0.1165, allocations: 0.7124 MB / 428.4 MB, free: 1.242 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.029e-05/0.1165, allocations: 17.5 kB / 428.4 MB, free: 1.223 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.463e-05/0.1166, allocations: 31.42 kB / 428.4 MB, free: 1.195 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1166, allocations: 3.938 kB / 428.5 MB, free: 1.191 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02477/0.1413, allocations: 2.762 MB / 431.2 MB, free: 14.54 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.032/8.173, allocations: 3.984 kB / 431.2 MB, free: 14.54 MB / 366.1 MB " [Timeout remaining time 652] (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: 10.764795377384871]