Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/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_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Modulo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Modulo,fileNamePrefix="Buildings_latest_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.007556/0.007556, allocations: 96.53 kB / 15.73 MB, free: 6.043 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.001783/0.001783, allocations: 196.6 kB / 16.67 MB, free: 5.969 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.353/1.353, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.7/2.7, allocations: 469.4 MB / 0.7422 GB, free: 7.645 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 72.09 kB / 1.064 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3386/0.34, allocations: 159.1 MB / 1.22 GB, free: 14.6 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Modulo): time 0.001842/0.3419, allocations: 0.7092 MB / 1.22 GB, free: 13.89 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0009729/0.3429, allocations: 0.8603 MB / 1.221 GB, free: 13.02 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.891e-05/0.3429, allocations: 0 / 1.221 GB, free: 13.02 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.057e-05/0.343, allocations: 3.938 kB / 1.221 GB, free: 13.01 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.402e-05/0.3431, allocations: 11.86 kB / 1.221 GB, free: 13 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001548/0.3432, allocations: 23.92 kB / 1.221 GB, free: 12.98 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 8.334e-05/0.3433, allocations: 47.84 kB / 1.221 GB, free: 12.93 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 9.255e-05/0.3434, allocations: 8 kB / 1.221 GB, free: 12.92 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 6.428e-05/0.3435, allocations: 11.98 kB / 1.221 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.04e-05/0.3435, allocations: 31.84 kB / 1.221 GB, free: 12.88 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.033e-05/0.3436, allocations: 4 kB / 1.221 GB, free: 12.88 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 1.111e-05/0.3436, allocations: 4 kB / 1.221 GB, free: 12.87 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.822e-05/0.3436, allocations: 7.938 kB / 1.221 GB, free: 12.86 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.457e-05/0.3436, allocations: 19.91 kB / 1.222 GB, free: 12.84 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 9.333e-05/0.3437, allocations: 43.81 kB / 1.222 GB, free: 12.8 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.3438, allocations: 0 / 1.222 GB, free: 12.8 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.362e-06/0.3438, allocations: 0 / 1.222 GB, free: 12.8 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.339e-06/0.3438, allocations: 0 / 1.222 GB, free: 12.8 MB / 0.9825 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.0004902/0.3443, allocations: 367.3 kB / 1.222 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.3443, allocations: 8.031 kB / 1.222 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.495e-05/0.3443, allocations: 30.75 kB / 1.222 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.452e-05/0.3444, allocations: 12.88 kB / 1.222 GB, free: 12.33 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001134/0.3445, allocations: 168.4 kB / 1.222 GB, free: 12.13 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.024e-05/0.3445, allocations: 384 / 1.222 GB, free: 12.13 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.184e-05/0.3445, allocations: 4.375 kB / 1.222 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002672/0.3448, allocations: 66.22 kB / 1.222 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.537e-06/0.3448, allocations: 7.875 kB / 1.222 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/0.3448, allocations: 4 kB / 1.222 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.3449, allocations: 0 / 1.222 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003253/0.3452, allocations: 67.92 kB / 1.222 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003773/0.3456, allocations: 264.9 kB / 1.222 GB, free: 11.67 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002071/0.3458, allocations: 58.53 kB / 1.223 GB, free: 11.6 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001598/0.346, allocations: 44.86 kB / 1.223 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.228e-05/0.346, allocations: 0 / 1.223 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.604e-05/0.346, allocations: 30.56 kB / 1.223 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 9.52e-07/0.346, allocations: 0 / 1.223 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0005666/0.3466, allocations: 129.6 kB / 1.223 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.347e-05/0.3466, allocations: 51.41 kB / 1.223 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.998e-05/0.3467, allocations: 121.8 kB / 1.223 GB, free: 11.19 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.45e-05/0.3468, allocations: 25.7 kB / 1.223 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.338e-05/0.3468, allocations: 84.14 kB / 1.223 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.098e-05/0.3469, allocations: 19.83 kB / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.397e-05/0.3469, allocations: 13.66 kB / 1.223 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001015/0.347, allocations: 322.8 kB / 1.223 GB, free: 10.71 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001528/0.3472, allocations: 35.89 kB / 1.223 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001387/0.3473, allocations: 28.16 kB / 1.223 GB, free: 10.65 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002928/0.3476, allocations: 84.73 kB / 1.224 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3476, allocations: 0 / 1.224 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003365/0.348, allocations: 93.62 kB / 1.224 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.348, allocations: 8 kB / 1.224 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.348, allocations: 0 / 1.224 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.348, allocations: 0 / 1.224 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001347/0.3481, allocations: 19.97 kB / 1.224 GB, free: 10.44 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.086e-06/0.3482, allocations: 0 / 1.224 GB, free: 10.44 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.346e-05/0.3483, allocations: 23.88 kB / 1.224 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.444e-06/0.3483, allocations: 0 / 1.224 GB, free: 10.41 MB / 0.9825 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 8.591e-05/0.3484, allocations: 118.3 kB / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.659e-05/0.3484, allocations: 0 / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.1e-05/0.3484, allocations: 7.906 kB / 1.224 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.3484, allocations: 0 / 1.224 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.3484, allocations: 4 kB / 1.224 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.3485, allocations: 3.984 kB / 1.224 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001853/0.3486, allocations: 169.6 kB / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.3487, allocations: 0 / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001038/0.3488, allocations: 15.98 kB / 1.224 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.616e-06/0.3488, allocations: 0 / 1.224 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.446e-06/0.3488, allocations: 0 / 1.224 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.3488, allocations: 0 / 1.224 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.3488, allocations: 0 / 1.224 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004001/0.3492, allocations: 211.3 kB / 1.224 GB, free: 9.812 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.077e-05/0.3493, allocations: 77.11 kB / 1.224 GB, free: 9.719 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.541e-05/0.3493, allocations: 0 / 1.224 GB, free: 9.719 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001295/0.3494, allocations: 11.98 kB / 1.224 GB, free: 9.707 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.187e-05/0.3495, allocations: 7.984 kB / 1.224 GB, free: 9.699 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.151e-06/0.3495, allocations: 8 kB / 1.224 GB, free: 9.691 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.379e-05/0.3495, allocations: 87.27 kB / 1.224 GB, free: 9.605 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3495, allocations: 0 / 1.224 GB, free: 9.605 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002307/0.3498, allocations: 8 kB / 1.224 GB, free: 9.598 MB / 0.9825 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.0007124/0.3505, allocations: 0.7318 MB / 1.225 GB, free: 8.84 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003386/0.3508, allocations: 71.84 kB / 1.225 GB, free: 8.77 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3509, allocations: 4 kB / 1.225 GB, free: 8.766 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001572/0.351, allocations: 35.97 kB / 1.225 GB, free: 8.73 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003002/0.3513, allocations: 4 kB / 1.225 GB, free: 8.727 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004134/0.3517, allocations: 162.9 kB / 1.225 GB, free: 8.527 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002275/0.352, allocations: 0.6807 MB / 1.226 GB, free: 7.82 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.142e-05/0.352, allocations: 0 / 1.226 GB, free: 7.82 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.852e-05/0.3521, allocations: 27.42 kB / 1.226 GB, free: 7.793 MB / 0.9825 GB Notification: Performance of SimCode: time 3.5e-07/0.3521, allocations: 0 / 1.226 GB, free: 7.793 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01816/0.3703, allocations: 1.682 MB / 1.228 GB, free: 6.207 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.666/8.037, allocations: 19.53 kB / 1.228 GB, free: 6.195 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Modulo.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Modulo.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches