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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.006405/0.006405, allocations: 98.52 kB / 15.73 MB, free: 5.578 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.001296/0.001296, allocations: 187.6 kB / 16.67 MB, free: 5.516 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.43/1.43, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.823/2.823, allocations: 482.4 MB / 0.7548 GB, free: 6.906 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001913/0.001913, allocations: 67.23 kB / 1.083 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3186/0.3205, allocations: 162.2 MB / 1.242 GB, free: 9.27 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Modulo): time 0.002621/0.3232, allocations: 0.7009 MB / 1.242 GB, free: 8.574 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001567/0.3248, allocations: 0.8783 MB / 1.243 GB, free: 7.684 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.965e-05/0.3249, allocations: 0 / 1.243 GB, free: 7.684 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.187e-05/0.3249, allocations: 3.938 kB / 1.243 GB, free: 7.68 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.531e-05/0.325, allocations: 7.938 kB / 1.243 GB, free: 7.672 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001752/0.3252, allocations: 15.98 kB / 1.243 GB, free: 7.656 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.000107/0.3253, allocations: 43.84 kB / 1.243 GB, free: 7.613 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001063/0.3254, allocations: 11.98 kB / 1.243 GB, free: 7.602 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 7.937e-05/0.3255, allocations: 23.86 kB / 1.243 GB, free: 7.578 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.377e-05/0.3256, allocations: 27.91 kB / 1.243 GB, free: 7.551 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.179e-05/0.3256, allocations: 4 kB / 1.243 GB, free: 7.547 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.476e-05/0.3256, allocations: 4 kB / 1.243 GB, free: 7.543 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.368e-05/0.3257, allocations: 4 kB / 1.243 GB, free: 7.539 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.26e-05/0.3257, allocations: 19.86 kB / 1.243 GB, free: 7.52 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001283/0.3259, allocations: 44.08 kB / 1.243 GB, free: 7.477 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3259, allocations: 0 / 1.243 GB, free: 7.477 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.873e-06/0.3259, allocations: 0 / 1.243 GB, free: 7.477 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.508e-06/0.3259, allocations: 0 / 1.243 GB, free: 7.477 MB / 0.9669 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.0006605/0.3266, allocations: 367.3 kB / 1.244 GB, free: 7.066 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.3266, allocations: 8.031 kB / 1.244 GB, free: 7.059 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.516e-05/0.3267, allocations: 42.73 kB / 1.244 GB, free: 7.008 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.07e-05/0.3267, allocations: 8.828 kB / 1.244 GB, free: 7 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001535/0.3269, allocations: 164.4 kB / 1.244 GB, free: 6.801 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.12e-05/0.3269, allocations: 384 / 1.244 GB, free: 6.801 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.448e-05/0.3269, allocations: 4.375 kB / 1.244 GB, free: 6.797 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003175/0.3273, allocations: 70.16 kB / 1.244 GB, free: 6.723 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.3273, allocations: 7.938 kB / 1.244 GB, free: 6.715 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.005e-05/0.3273, allocations: 0 / 1.244 GB, free: 6.715 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.3273, allocations: 0 / 1.244 GB, free: 6.715 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004303/0.3277, allocations: 63.92 kB / 1.244 GB, free: 6.652 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004398/0.3282, allocations: 280.7 kB / 1.244 GB, free: 6.328 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002845/0.3285, allocations: 58.53 kB / 1.244 GB, free: 6.262 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002289/0.3287, allocations: 36.92 kB / 1.244 GB, free: 6.223 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.215e-05/0.3288, allocations: 0 / 1.244 GB, free: 6.223 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.189e-05/0.3288, allocations: 30.56 kB / 1.244 GB, free: 6.184 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 1.242e-06/0.3288, allocations: 4 kB / 1.244 GB, free: 6.18 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0008419/0.3297, allocations: 129.5 kB / 1.244 GB, free: 6.047 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.832e-05/0.3297, allocations: 55.41 kB / 1.245 GB, free: 5.98 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001167/0.3299, allocations: 105.8 kB / 1.245 GB, free: 5.867 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.41e-05/0.3299, allocations: 29.7 kB / 1.245 GB, free: 5.832 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.735e-05/0.33, allocations: 88.14 kB / 1.245 GB, free: 5.742 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.981e-05/0.33, allocations: 15.89 kB / 1.245 GB, free: 5.727 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.494e-05/0.3301, allocations: 13.72 kB / 1.245 GB, free: 5.707 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000193/0.3303, allocations: 314.8 kB / 1.245 GB, free: 5.391 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002279/0.3305, allocations: 31.95 kB / 1.245 GB, free: 5.359 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002157/0.3308, allocations: 35.97 kB / 1.245 GB, free: 5.324 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000444/0.3312, allocations: 68.72 kB / 1.245 GB, free: 5.254 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3312, allocations: 0 / 1.245 GB, free: 5.254 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005575/0.3318, allocations: 97.84 kB / 1.245 GB, free: 5.152 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.558e-05/0.3318, allocations: 12 kB / 1.245 GB, free: 5.141 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.3319, allocations: 3.938 kB / 1.245 GB, free: 5.137 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/0.3319, allocations: 4.031 kB / 1.245 GB, free: 5.133 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001823/0.3321, allocations: 19.97 kB / 1.245 GB, free: 5.113 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.052e-06/0.3321, allocations: 0 / 1.245 GB, free: 5.113 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001229/0.3322, allocations: 7.984 kB / 1.245 GB, free: 5.105 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.238e-05/0.3322, allocations: 4 kB / 1.245 GB, free: 5.102 MB / 0.9669 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 0.0001141/0.3324, allocations: 118.3 kB / 1.245 GB, free: 4.977 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.826e-05/0.3324, allocations: 7.953 kB / 1.245 GB, free: 4.969 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.557e-05/0.3325, allocations: 3.906 kB / 1.245 GB, free: 4.957 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.3325, allocations: 3.984 kB / 1.245 GB, free: 4.953 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.117e-05/0.3325, allocations: 0 / 1.245 GB, free: 4.953 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.3325, allocations: 3.938 kB / 1.245 GB, free: 4.949 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000284/0.3328, allocations: 169.6 kB / 1.246 GB, free: 4.734 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.3328, allocations: 0 / 1.246 GB, free: 4.734 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001551/0.333, allocations: 19.92 kB / 1.246 GB, free: 4.715 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/0.333, allocations: 4 kB / 1.246 GB, free: 4.711 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.917e-06/0.333, allocations: 4 kB / 1.246 GB, free: 4.707 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.333, allocations: 3.984 kB / 1.246 GB, free: 4.703 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.333, allocations: 4 kB / 1.246 GB, free: 4.699 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005751/0.3336, allocations: 191.4 kB / 1.246 GB, free: 4.496 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 7.181e-05/0.3337, allocations: 85.06 kB / 1.246 GB, free: 4.395 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.891e-05/0.3337, allocations: 0 / 1.246 GB, free: 4.395 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001936/0.3339, allocations: 15.97 kB / 1.246 GB, free: 4.379 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.129e-05/0.334, allocations: 8 kB / 1.246 GB, free: 4.371 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.462e-06/0.334, allocations: 0 / 1.246 GB, free: 4.371 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 7.462e-05/0.3341, allocations: 87.25 kB / 1.246 GB, free: 4.285 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.4e-07/0.3341, allocations: 0 / 1.246 GB, free: 4.285 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0004288/0.3345, allocations: 15.94 kB / 1.246 GB, free: 4.27 MB / 0.9669 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.001018/0.3356, allocations: 0.7357 MB / 1.247 GB, free: 3.508 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0004989/0.3361, allocations: 71.92 kB / 1.247 GB, free: 3.438 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3361, allocations: 0 / 1.247 GB, free: 3.438 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.000235/0.3363, allocations: 35.91 kB / 1.247 GB, free: 3.402 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004744/0.3368, allocations: 5.875 kB / 1.247 GB, free: 3.398 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006242/0.3375, allocations: 155 kB / 1.247 GB, free: 3.207 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004208/0.3379, allocations: 0.6846 MB / 1.248 GB, free: 2.496 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.239e-05/0.338, allocations: 3.984 kB / 1.248 GB, free: 2.492 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.486e-05/0.338, allocations: 19.38 kB / 1.248 GB, free: 2.473 MB / 0.9669 GB Notification: Performance of SimCode: time 3.6e-07/0.338, allocations: 0 / 1.248 GB, free: 2.473 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02578/0.3638, allocations: 1.675 MB / 1.249 GB, free: 0.8945 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.647/8.011, allocations: 21.19 kB / 1.249 GB, free: 0.8789 MB / 0.9669 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 400 --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