Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Continuous.Validation.Modulo,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Modulo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Modulo,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_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.007912/0.007913, allocations: 104.1 kB / 15.74 MB, free: 6.059 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.001784/0.001784, allocations: 196.5 kB / 16.68 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.354/1.354, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.263/2.263, allocations: 390.3 MB / 0.6648 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 67.89 kB / 0.9504 GB, free: 8.094 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8132/0.8144, allocations: 140.4 MB / 1.088 GB, free: 5.266 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Modulo): time 0.002062/0.8166, allocations: 0.7029 MB / 1.088 GB, free: 4.82 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0009035/0.8175, allocations: 0.8666 MB / 1.089 GB, free: 4.168 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.67e-05/0.8175, allocations: 0 / 1.089 GB, free: 4.168 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.556e-05/0.8176, allocations: 3.938 kB / 1.089 GB, free: 4.164 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.61e-05/0.8177, allocations: 9.922 kB / 1.089 GB, free: 4.156 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001616/0.8178, allocations: 22.61 kB / 1.089 GB, free: 4.145 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.356e-05/0.8179, allocations: 47.28 kB / 1.089 GB, free: 4.121 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.256e-05/0.818, allocations: 6.016 kB / 1.089 GB, free: 4.121 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.279e-05/0.8181, allocations: 21.95 kB / 1.089 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.338e-05/0.8181, allocations: 18.5 kB / 1.089 GB, free: 4.102 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.89e-05/0.8182, allocations: 3.312 kB / 1.089 GB, free: 4.102 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.08e-05/0.8182, allocations: 4.25 kB / 1.089 GB, free: 4.102 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.119e-05/0.8182, allocations: 10.77 kB / 1.089 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.428e-05/0.8182, allocations: 22 kB / 1.089 GB, free: 4.078 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 9.65e-05/0.8183, allocations: 44.09 kB / 1.089 GB, free: 4.059 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.8184, allocations: 1.062 kB / 1.089 GB, free: 4.059 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.224e-06/0.8184, allocations: 3.938 kB / 1.089 GB, free: 4.055 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.649e-06/0.8184, allocations: 3.938 kB / 1.089 GB, free: 4.051 MB / 0.8575 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.0005441/0.8189, allocations: 359.5 kB / 1.09 GB, free: 3.688 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/0.819, allocations: 9.562 kB / 1.09 GB, free: 3.688 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.889e-05/0.819, allocations: 31.45 kB / 1.09 GB, free: 3.648 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.97e-05/0.819, allocations: 11.64 kB / 1.09 GB, free: 3.641 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001097/0.8192, allocations: 168.7 kB / 1.09 GB, free: 3.441 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.667e-06/0.8192, allocations: 1.438 kB / 1.09 GB, free: 3.441 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.503e-05/0.8192, allocations: 1.562 kB / 1.09 GB, free: 3.441 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002754/0.8195, allocations: 69.73 kB / 1.09 GB, free: 3.402 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.8195, allocations: 3.938 kB / 1.09 GB, free: 3.398 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.19e-05/0.8195, allocations: 5 kB / 1.09 GB, free: 3.395 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.665e-06/0.8195, allocations: 3.984 kB / 1.09 GB, free: 3.391 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003156/0.8199, allocations: 71.7 kB / 1.09 GB, free: 3.375 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003409/0.8202, allocations: 277.2 kB / 1.09 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002025/0.8204, allocations: 52.33 kB / 1.09 GB, free: 3.055 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000153/0.8206, allocations: 40.11 kB / 1.09 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.852e-05/0.8206, allocations: 5.703 kB / 1.09 GB, free: 3.035 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.374e-05/0.8206, allocations: 32.48 kB / 1.09 GB, free: 2.996 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.533e-06/0.8206, allocations: 0 / 1.09 GB, free: 2.996 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0005497/0.8212, allocations: 132.3 kB / 1.09 GB, free: 2.945 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.381e-05/0.8212, allocations: 53.36 kB / 1.091 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.042e-05/0.8213, allocations: 106.6 kB / 1.091 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 8.466e-06/0.8213, allocations: 25.7 kB / 1.091 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.03e-05/0.8213, allocations: 87.48 kB / 1.091 GB, free: 2.664 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.85e-05/0.8214, allocations: 13.53 kB / 1.091 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.174e-05/0.8214, allocations: 17.5 kB / 1.091 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.276e-05/0.8215, allocations: 318.5 kB / 1.091 GB, free: 2.316 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001548/0.8216, allocations: 30.8 kB / 1.091 GB, free: 2.312 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000143/0.8218, allocations: 31.05 kB / 1.091 GB, free: 2.309 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002935/0.8221, allocations: 78.16 kB / 1.091 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.8221, allocations: 1.125 kB / 1.091 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003437/0.8224, allocations: 93.78 kB / 1.091 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.8225, allocations: 5.938 kB / 1.091 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.8225, allocations: 0.6875 kB / 1.091 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.028e-05/0.8225, allocations: 0 / 1.091 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001504/0.8227, allocations: 20.28 kB / 1.091 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.8227, allocations: 0.8125 kB / 1.091 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.871e-05/0.8228, allocations: 14.98 kB / 1.091 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.158e-06/0.8228, allocations: 1.594 kB / 1.091 GB, free: 2.234 MB / 0.8575 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.298e-05/0.8229, allocations: 113 kB / 1.091 GB, free: 2.117 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.641e-05/0.8229, allocations: 6.125 kB / 1.091 GB, free: 2.113 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.591e-05/0.8229, allocations: 13.53 kB / 1.091 GB, free: 2.098 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.8229, allocations: 1.516 kB / 1.091 GB, free: 2.098 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.823, allocations: 7.938 kB / 1.091 GB, free: 2.09 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.823, allocations: 0.7188 kB / 1.091 GB, free: 2.09 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001599/0.8231, allocations: 170.5 kB / 1.092 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.8231, allocations: 4.469 kB / 1.092 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001087/0.8233, allocations: 15.81 kB / 1.092 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.8233, allocations: 1.875 kB / 1.092 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.077e-06/0.8233, allocations: 0 / 1.092 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.8233, allocations: 0.7031 kB / 1.092 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.8233, allocations: 0.8438 kB / 1.092 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003794/0.8237, allocations: 194.8 kB / 1.092 GB, free: 1.742 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.279e-05/0.8237, allocations: 91.19 kB / 1.092 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.683e-05/0.8237, allocations: 0.6562 kB / 1.092 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001112/0.8239, allocations: 12.19 kB / 1.092 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.077e-05/0.8239, allocations: 3.875 kB / 1.092 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.174e-06/0.8239, allocations: 9.797 kB / 1.092 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.77e-05/0.824, allocations: 86.77 kB / 1.092 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.824, allocations: 3.938 kB / 1.092 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002181/0.8242, allocations: 6.219 kB / 1.092 GB, free: 1.547 MB / 0.8575 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.0006989/0.8249, allocations: 0.7293 MB / 1.093 GB, free: 16.88 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.000391/0.8253, allocations: 67.08 kB / 1.093 GB, free: 16.87 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.8253, allocations: 0 / 1.093 GB, free: 16.87 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001829/0.8255, allocations: 43.05 kB / 1.093 GB, free: 16.86 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003587/0.8259, allocations: 8.5 kB / 1.093 GB, free: 16.85 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005029/0.8264, allocations: 159.2 kB / 1.093 GB, free: 16.7 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002452/0.8266, allocations: 0.6807 MB / 1.094 GB, free: 16 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 3.177e-05/0.8267, allocations: 2.359 kB / 1.094 GB, free: 16 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.402e-05/0.8267, allocations: 18.72 kB / 1.094 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of SimCode: time 3.5e-07/0.8267, allocations: 0 / 1.094 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01597/0.8427, allocations: 1.681 MB / 1.095 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.582/8.424, allocations: 16.42 kB / 1.095 GB, free: 15.58 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Modulo.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Modulo.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Modulo.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Modulo.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Modulo.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Modulo.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Modulo_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Modulo.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Modulo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches