Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) 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(Buildings.Controls.OBC.CDL.Reals.Validation.Modulo,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Modulo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Modulo,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Modulo",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.001242/0.001242, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001363/0.001363, allocations: 193.2 kB / 16.53 MB, free: 6.391 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.284/1.284, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.408/2.408, allocations: 437.1 MB / 0.7104 GB, free: 5.113 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 71.89 kB / 0.8694 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5847/0.5861, allocations: 151.6 MB / 1.017 GB, free: 2.48 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Modulo): time 0.001972/0.5881, allocations: 0.7036 MB / 1.018 GB, free: 1.777 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.000983/0.5891, allocations: 0.8624 MB / 1.019 GB, free: 0.9023 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.426e-05/0.5892, allocations: 0 / 1.019 GB, free: 0.9023 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.982e-05/0.5892, allocations: 11.92 kB / 1.019 GB, free: 0.8906 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.526e-05/0.5893, allocations: 3.938 kB / 1.019 GB, free: 0.8867 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001618/0.5895, allocations: 23.92 kB / 1.019 GB, free: 0.8633 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 7.332e-05/0.5895, allocations: 43.86 kB / 1.019 GB, free: 0.8203 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 9.557e-05/0.5896, allocations: 11.98 kB / 1.019 GB, free: 0.8086 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 6.838e-05/0.5897, allocations: 15.98 kB / 1.019 GB, free: 0.793 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.766e-05/0.5898, allocations: 27.84 kB / 1.019 GB, free: 0.7656 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.774e-05/0.5898, allocations: 4 kB / 1.019 GB, free: 0.7617 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.198e-05/0.5898, allocations: 8 kB / 1.019 GB, free: 0.7539 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.106e-05/0.5898, allocations: 7.984 kB / 1.019 GB, free: 0.7461 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.413e-05/0.5899, allocations: 11.94 kB / 1.019 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 8.525e-05/0.59, allocations: 43.81 kB / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.59, allocations: 0 / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.413e-06/0.59, allocations: 0 / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 8.606e-06/0.59, allocations: 0 / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004843/0.5905, allocations: 365.5 kB / 1.02 GB, free: 292 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.5905, allocations: 15.97 kB / 1.02 GB, free: 276 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.488e-05/0.5906, allocations: 30.75 kB / 1.02 GB, free: 236 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.672e-05/0.5906, allocations: 4.938 kB / 1.02 GB, free: 232 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001144/0.5907, allocations: 172.3 kB / 1.02 GB, free: 20 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.818e-06/0.5907, allocations: 384 / 1.02 GB, free: 20 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.266e-05/0.5908, allocations: 384 / 1.02 GB, free: 20 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002603/0.591, allocations: 78.2 kB / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.5911, allocations: 7.922 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.057e-06/0.5911, allocations: 3.938 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.5911, allocations: 4 kB / 1.02 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002892/0.5914, allocations: 67.86 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003247/0.5917, allocations: 264.9 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002039/0.5919, allocations: 58.53 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001528/0.5921, allocations: 40.91 kB / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.2e-05/0.5921, allocations: 0 / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.288e-05/0.5921, allocations: 34.56 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.012e-06/0.5921, allocations: 0 / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0005341/0.5927, allocations: 133.4 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.967e-05/0.5927, allocations: 51.41 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.493e-05/0.5928, allocations: 113.8 kB / 1.021 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.474e-05/0.5928, allocations: 25.7 kB / 1.021 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.371e-05/0.5929, allocations: 92.12 kB / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.008e-05/0.5929, allocations: 11.84 kB / 1.021 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.301e-05/0.593, allocations: 13.72 kB / 1.021 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.66e-05/0.5931, allocations: 318.8 kB / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001451/0.5932, allocations: 27.97 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001321/0.5933, allocations: 31.97 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000273/0.5936, allocations: 76.66 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.5936, allocations: 0 / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003377/0.594, allocations: 105.5 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.594, allocations: 8 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.594, allocations: 4 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.144e-05/0.594, allocations: 0 / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001204/0.5942, allocations: 11.98 kB / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/0.5942, allocations: 4 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.813e-05/0.5943, allocations: 11.98 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.304e-06/0.5943, allocations: 0 / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 7.352e-05/0.5944, allocations: 113.8 kB / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.83e-05/0.5944, allocations: 11.98 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.538e-05/0.5944, allocations: 7.906 kB / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.5944, allocations: 0 / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.5944, allocations: 0 / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.5944, allocations: 0 / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001577/0.5946, allocations: 173.5 kB / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.5946, allocations: 3.938 kB / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000126/0.5947, allocations: 19.97 kB / 1.022 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.5948, allocations: 0 / 1.022 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.873e-06/0.5948, allocations: 0 / 1.022 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.5948, allocations: 4 kB / 1.022 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.5948, allocations: 0 / 1.022 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003554/0.5951, allocations: 199.7 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.316e-05/0.5952, allocations: 81.09 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.682e-05/0.5952, allocations: 8 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001049/0.5953, allocations: 15.98 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.843e-05/0.5954, allocations: 0 / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.861e-06/0.5954, allocations: 4 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.374e-05/0.5954, allocations: 87.27 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5954, allocations: 0 / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000216/0.5957, allocations: 8 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0006576/0.5963, allocations: 0.7357 MB / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003252/0.5967, allocations: 75.92 kB / 1.023 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.5967, allocations: 0 / 1.023 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001473/0.5968, allocations: 39.91 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002966/0.5971, allocations: 7.984 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004522/0.5976, allocations: 163.1 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002428/0.5978, allocations: 0.6807 MB / 1.024 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.833e-05/0.5979, allocations: 4 kB / 1.024 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.043e-05/0.5979, allocations: 11.44 kB / 1.024 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of SimCode: time 2.31e-07/0.5979, allocations: 0 / 1.024 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0182/0.6161, allocations: 1.626 MB / 1.025 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.852/7.468, allocations: 17.33 kB / 1.025 GB, free: 10.12 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Modulo.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_Modulo.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches