Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.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.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff,fileNamePrefix="Buildings_9_Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff,fileNamePrefix="Buildings_9_Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff",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.001328/0.001328, allocations: 112.5 kB / 15.73 MB, free: 76 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.001138/0.001139, allocations: 188.5 kB / 16.67 MB, free: 6.543 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.294/1.294, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.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.315/2.315, allocations: 390.2 MB / 0.6648 GB, free: 220 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 63.25 kB / 0.9504 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2227/0.224, allocations: 140.4 MB / 1.087 GB, free: 2.027 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff): time 0.001838/0.2259, allocations: 0.8919 MB / 1.088 GB, free: 1.133 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0008841/0.2268, allocations: 0.8637 MB / 1.089 GB, free: 264 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.171e-05/0.2268, allocations: 4 kB / 1.089 GB, free: 260 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.507e-05/0.2269, allocations: 7.875 kB / 1.089 GB, free: 252 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 9.052e-05/0.227, allocations: 15.8 kB / 1.089 GB, free: 236 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001541/0.2272, allocations: 39.95 kB / 1.089 GB, free: 196 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001297/0.2273, allocations: 115.6 kB / 1.089 GB, free: 80 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001274/0.2274, allocations: 41.08 kB / 1.089 GB, free: 36 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001166/0.2276, allocations: 51.94 kB / 1.089 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.877e-05/0.2277, allocations: 47.77 kB / 1.089 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.38e-05/0.2277, allocations: 12 kB / 1.089 GB, free: 15.92 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.753e-05/0.2277, allocations: 16 kB / 1.09 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.742e-05/0.2277, allocations: 19.92 kB / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.369e-05/0.2278, allocations: 59.55 kB / 1.09 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001505/0.228, allocations: 123.8 kB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.228, allocations: 0 / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.583e-06/0.228, allocations: 0 / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.096e-06/0.228, allocations: 0 / 1.09 GB, free: 15.71 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008559/0.2289, allocations: 462.9 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.398e-05/0.2289, allocations: 11.97 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.576e-05/0.2289, allocations: 42.75 kB / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.276e-05/0.229, allocations: 8.891 kB / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000125/0.2291, allocations: 190 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.213e-05/0.2291, allocations: 8.375 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.976e-05/0.2291, allocations: 8.375 kB / 1.09 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002085/0.2294, allocations: 90.14 kB / 1.09 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.2294, allocations: 7.938 kB / 1.09 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.311e-05/0.2294, allocations: 4 kB / 1.09 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.2294, allocations: 0 / 1.09 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001822/0.2296, allocations: 67.97 kB / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007057/0.2303, allocations: 408.4 kB / 1.091 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000155/0.2305, allocations: 62.48 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.62e-05/0.2306, allocations: 28.97 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.726e-05/0.2306, allocations: 4 kB / 1.091 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.238e-05/0.2306, allocations: 34.56 kB / 1.091 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=5): time 1.152e-06/0.2306, allocations: 4 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5): time 0.0003458/0.231, allocations: 109.6 kB / 1.091 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.671e-05/0.231, allocations: 55.34 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001203/0.2312, allocations: 155.5 kB / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.939e-05/0.2312, allocations: 25.7 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.651e-05/0.2312, allocations: 112 kB / 1.092 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.207e-05/0.2313, allocations: 15.94 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.319e-05/0.2313, allocations: 21.72 kB / 1.092 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.766e-05/0.2314, allocations: 322.8 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.12e-05/0.2315, allocations: 27.98 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.817e-05/0.2316, allocations: 27.98 kB / 1.092 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000142/0.2317, allocations: 48.83 kB / 1.092 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.2317, allocations: 0 / 1.092 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002112/0.232, allocations: 97.56 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.232, allocations: 8 kB / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.232, allocations: 0 / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.14e-05/0.232, allocations: 0 / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001013/0.2321, allocations: 11.92 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.927e-06/0.2321, allocations: 7.938 kB / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001876/0.2323, allocations: 35.98 kB / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.134e-05/0.2324, allocations: 4 kB / 1.092 GB, free: 13 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: 5 (conSysSta.onTRoo.y,$PRE.conSysSta.onTRoo.y,conSysSta.onTOut.y,$PRE.conSysSta.onTOut.y,conSysSta.onSys) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.162e-05/0.2324, allocations: 113.8 kB / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.43e-05/0.2325, allocations: 7.953 kB / 1.092 GB, free: 12.87 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.601e-05/0.2325, allocations: 20.55 kB / 1.092 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.2325, allocations: 0 / 1.092 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.2325, allocations: 7.938 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.2325, allocations: 4 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001843/0.2327, allocations: 205.5 kB / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.2327, allocations: 3.984 kB / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.955e-05/0.2328, allocations: 11.98 kB / 1.092 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.2328, allocations: 0 / 1.092 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/0.2328, allocations: 4 kB / 1.092 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.2328, allocations: 0 / 1.092 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.2329, allocations: 3.938 kB / 1.092 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002307/0.2331, allocations: 183.4 kB / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.149e-05/0.2331, allocations: 89.06 kB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.218e-05/0.2332, allocations: 0 / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002144/0.2334, allocations: 27.91 kB / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.913e-05/0.2335, allocations: 15.92 kB / 1.093 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.296e-06/0.2335, allocations: 11.98 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.976e-05/0.2335, allocations: 113.1 kB / 1.093 GB, free: 12.1 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2336, allocations: 0 / 1.093 GB, free: 12.1 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002398/0.2338, allocations: 12 kB / 1.093 GB, free: 12.09 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: 3 (conSysSta.onSys,conSysSta.onTOut.y,conSysSta.onTRoo.y) * Number of discrete states: 2 (conSysSta.onTRoo.y,conSysSta.onTOut.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * 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.0004948/0.2343, allocations: 0.728 MB / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002247/0.2345, allocations: 63.97 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.2345, allocations: 0 / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.698e-05/0.2346, allocations: 35.92 kB / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003288/0.235, allocations: 15.92 kB / 1.094 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001659/0.2367, allocations: 1.593 MB / 1.095 GB, free: 9.551 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002084/0.2369, allocations: 0.7002 MB / 1.096 GB, free: 8.824 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.568e-05/0.2369, allocations: 8 kB / 1.096 GB, free: 8.816 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.04e-05/0.237, allocations: 31.36 kB / 1.096 GB, free: 8.785 MB / 0.8575 GB Notification: Performance of SimCode: time 2.91e-07/0.237, allocations: 0 / 1.096 GB, free: 8.785 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01726/0.2543, allocations: 2.762 MB / 1.099 GB, free: 6.145 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.271/7.525, allocations: 9.766 kB / 1.099 GB, free: 6.137 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe ; mkfifo Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe >> ../files/Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_9_Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff.fmu > Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches