Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.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.Logical.Validation.OnOffController,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController",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.001112/0.001112, 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.001099/0.001099, allocations: 199.7 kB / 16.54 MB, free: 6.672 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.291/1.291, allocations: 222.9 MB / 240.2 MB, free: 4.41 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.471/2.471, allocations: 437.1 MB / 0.7104 GB, free: 5.082 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 63.91 kB / 0.8694 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6479/0.6493, allocations: 151.6 MB / 1.017 GB, free: 2.488 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController): time 0.002569/0.652, allocations: 0.7216 MB / 1.018 GB, free: 1.766 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001306/0.6533, allocations: 0.8234 MB / 1.019 GB, free: 0.9297 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.782e-05/0.6534, allocations: 0 / 1.019 GB, free: 0.9297 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.579e-05/0.6534, allocations: 3.938 kB / 1.019 GB, free: 0.9258 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.747e-05/0.6536, allocations: 11.92 kB / 1.019 GB, free: 0.9141 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002034/0.6538, allocations: 27.91 kB / 1.019 GB, free: 0.8867 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001056/0.6539, allocations: 39.86 kB / 1.019 GB, free: 0.8477 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001497/0.654, allocations: 16 kB / 1.019 GB, free: 0.832 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.471e-05/0.6541, allocations: 23.92 kB / 1.019 GB, free: 0.8086 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.327e-05/0.6542, allocations: 23.89 kB / 1.019 GB, free: 0.7852 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.351e-05/0.6542, allocations: 4 kB / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.406e-05/0.6542, allocations: 4 kB / 1.019 GB, free: 0.7773 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.479e-05/0.6543, allocations: 8 kB / 1.019 GB, free: 0.7695 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.441e-05/0.6543, allocations: 23.86 kB / 1.019 GB, free: 0.7461 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001222/0.6545, allocations: 39.86 kB / 1.019 GB, free: 0.707 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 8.466e-06/0.6545, allocations: 0 / 1.019 GB, free: 0.707 MB / 0.7637 GB Notification: Performance of FrontEnd: time 3.216e-06/0.6545, allocations: 0 / 1.019 GB, free: 0.707 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 8.687e-06/0.6545, allocations: 0 / 1.019 GB, free: 0.707 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006746/0.6552, allocations: 393.5 kB / 1.02 GB, free: 280 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.6552, allocations: 8.031 kB / 1.02 GB, free: 272 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.674e-05/0.6553, allocations: 34.75 kB / 1.02 GB, free: 228 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.337e-05/0.6553, allocations: 4.875 kB / 1.02 GB, free: 224 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001236/0.6554, allocations: 176.2 kB / 1.02 GB, free: 8 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.281e-05/0.6554, allocations: 4.375 kB / 1.02 GB, free: 4 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.122e-05/0.6555, allocations: 4.375 kB / 1.02 GB, free: 0 / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002172/0.6557, allocations: 66.23 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.6557, allocations: 3.938 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.889e-06/0.6557, allocations: 0 / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.684e-06/0.6557, allocations: 4 kB / 1.02 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001753/0.6559, allocations: 43.95 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005024/0.6564, allocations: 300.7 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002605/0.6567, allocations: 54.53 kB / 1.02 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.745e-05/0.6568, allocations: 28.98 kB / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.572e-05/0.6568, allocations: 0 / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.413e-05/0.6569, allocations: 38.5 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 4.498e-06/0.6569, allocations: 0 / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0004232/0.6573, allocations: 93.58 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.794e-05/0.6574, allocations: 51.41 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001162/0.6575, allocations: 109.8 kB / 1.021 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.38e-05/0.6575, allocations: 33.7 kB / 1.021 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.859e-05/0.6576, allocations: 96.06 kB / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.591e-05/0.6576, allocations: 7.812 kB / 1.021 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.691e-05/0.6577, allocations: 17.72 kB / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001698/0.6579, allocations: 322.8 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.533e-05/0.658, allocations: 19.98 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.148e-05/0.6581, allocations: 23.97 kB / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001642/0.6582, allocations: 48.77 kB / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.6582, allocations: 0 / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002078/0.6585, allocations: 73.66 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.667e-05/0.6585, allocations: 6.188 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.737e-06/0.6585, allocations: 4 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/0.6585, allocations: 0 / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.981e-05/0.6586, allocations: 7.984 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.123e-06/0.6586, allocations: 4.375 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001195/0.6587, allocations: 19.97 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.883e-06/0.6588, allocations: 0 / 1.021 GB, free: 14.41 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: 2 (onOffController.y,$PRE.onOffController.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.0001034/0.6589, allocations: 121.7 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.597e-05/0.6589, allocations: 7.844 kB / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002565/0.6592, allocations: 81.55 kB / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.6592, allocations: 0 / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.6592, allocations: 4 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.6592, allocations: 0 / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000156/0.6593, allocations: 173.7 kB / 1.022 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.6594, allocations: 0 / 1.022 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.08e-05/0.6594, allocations: 7.984 kB / 1.022 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.6594, allocations: 0 / 1.022 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/0.6594, allocations: 4 kB / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.6595, allocations: 0 / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.6595, allocations: 4 kB / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002289/0.6597, allocations: 175.7 kB / 1.022 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.205e-05/0.6597, allocations: 93.02 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.704e-05/0.6598, allocations: 48 / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001323/0.6599, allocations: 19.97 kB / 1.022 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.59e-05/0.66, allocations: 7.984 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.098e-06/0.66, allocations: 0 / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.352e-05/0.66, allocations: 91.27 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.66, allocations: 0 / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002135/0.6602, allocations: 12 kB / 1.022 GB, free: 13.52 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: 1 (onOffController.y) * Number of discrete states: 1 (onOffController.y) * 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.000646/0.6609, allocations: 0.7123 MB / 1.023 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002724/0.6612, allocations: 39.97 kB / 1.023 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.6612, allocations: 0 / 1.023 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 8.997e-05/0.6613, allocations: 27.97 kB / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003267/0.6616, allocations: 15.94 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001511/0.6631, allocations: 1.323 MB / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002902/0.6634, allocations: 0.6807 MB / 1.025 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.552e-05/0.6635, allocations: 4 kB / 1.025 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.235e-05/0.6635, allocations: 23.38 kB / 1.025 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of SimCode: time 3.31e-07/0.6635, allocations: 0 / 1.025 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01695/0.6805, allocations: 1.766 MB / 1.026 GB, free: 8.895 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.081/7.762, allocations: 6.125 kB / 1.026 GB, free: 8.891 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches