Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff.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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff,fileNamePrefix="Buildings_latest_Buildings_Examples_Tutorial_CDL_Controls_Validation_EquipmentOnOff",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff,fileNamePrefix="Buildings_latest_Buildings_Examples_Tutorial_CDL_Controls_Validation_EquipmentOnOff",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.001115/0.001115, allocations: 108 kB / 15.61 MB, free: 152 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.00108/0.00108, allocations: 194.5 kB / 16.53 MB, free: 6.699 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.281/1.281, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.643/2.643, allocations: 469.4 MB / 0.742 GB, free: 7.621 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001342, allocations: 64.39 kB / 0.9083 GB, free: 34.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2575/0.2589, allocations: 159.2 MB / 1.064 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff): time 0.002332/0.2613, allocations: 0.802 MB / 1.064 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001432/0.2627, allocations: 1.166 MB / 1.066 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.122e-05/0.2628, allocations: 0 / 1.066 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.748e-05/0.2629, allocations: 3.938 kB / 1.066 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.974e-05/0.2629, allocations: 15.86 kB / 1.066 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000444/0.2634, allocations: 138 kB / 1.066 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001831/0.2636, allocations: 143.8 kB / 1.066 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001229/0.2637, allocations: 39.95 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001006/0.2638, allocations: 59.78 kB / 1.066 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.42e-05/0.2639, allocations: 55.81 kB / 1.066 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.799e-05/0.264, allocations: 15.94 kB / 1.066 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.654e-05/0.264, allocations: 27.98 kB / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.719e-05/0.2641, allocations: 19.92 kB / 1.066 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.174e-05/0.2642, allocations: 55.78 kB / 1.066 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001963/0.2644, allocations: 151.8 kB / 1.066 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.2644, allocations: 0 / 1.066 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.794e-06/0.2644, allocations: 0 / 1.066 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.611e-06/0.2644, allocations: 0 / 1.066 GB, free: 11.76 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006159/0.265, allocations: 437 kB / 1.067 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.2651, allocations: 8.031 kB / 1.067 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.647e-05/0.2651, allocations: 42.73 kB / 1.067 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.757e-05/0.2652, allocations: 8.844 kB / 1.067 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001104/0.2653, allocations: 176.2 kB / 1.067 GB, free: 11 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.692e-05/0.2653, allocations: 8.375 kB / 1.067 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.396e-05/0.2653, allocations: 8.375 kB / 1.067 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002312/0.2656, allocations: 89.58 kB / 1.067 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.2656, allocations: 7.938 kB / 1.067 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.175e-05/0.2656, allocations: 0 / 1.067 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.2656, allocations: 4 kB / 1.067 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002118/0.2658, allocations: 59.95 kB / 1.067 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005238/0.2664, allocations: 380.5 kB / 1.067 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001608/0.2665, allocations: 58.48 kB / 1.068 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001018/0.2666, allocations: 24.94 kB / 1.068 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.165e-05/0.2667, allocations: 7.984 kB / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002197/0.2669, allocations: 87.38 kB / 1.068 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=6): time 1.293e-06/0.2669, allocations: 0 / 1.068 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.0004189/0.2673, allocations: 125.5 kB / 1.068 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.471e-05/0.2674, allocations: 55.41 kB / 1.068 GB, free: 10.01 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.907e-05/0.2675, allocations: 133.6 kB / 1.068 GB, free: 9.867 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.588e-05/0.2675, allocations: 29.7 kB / 1.068 GB, free: 9.832 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.892e-05/0.2675, allocations: 108 kB / 1.068 GB, free: 9.723 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.861e-05/0.2676, allocations: 11.91 kB / 1.068 GB, free: 9.711 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.118e-05/0.2676, allocations: 33.7 kB / 1.068 GB, free: 9.672 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.529e-05/0.2677, allocations: 318.8 kB / 1.068 GB, free: 9.352 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000162/0.2679, allocations: 51.97 kB / 1.068 GB, free: 9.301 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001628/0.2681, allocations: 79.39 kB / 1.069 GB, free: 9.211 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002419/0.2683, allocations: 116.2 kB / 1.069 GB, free: 9.082 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.2683, allocations: 4 kB / 1.069 GB, free: 9.078 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000403/0.2688, allocations: 191.2 kB / 1.069 GB, free: 8.879 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.587e-05/0.2688, allocations: 41.7 kB / 1.069 GB, free: 8.832 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.2688, allocations: 3.984 kB / 1.069 GB, free: 8.828 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/0.2688, allocations: 0 / 1.069 GB, free: 8.828 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.772e-05/0.2689, allocations: 8 kB / 1.069 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.2689, allocations: 3.938 kB / 1.069 GB, free: 8.816 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002443/0.2692, allocations: 47.84 kB / 1.069 GB, free: 8.77 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.855e-05/0.2692, allocations: 4 kB / 1.069 GB, free: 8.766 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,onSys.y,$PRE.onSys.y,conEquSta.hys.y,$PRE.conEquSta.hys.y,conEquSta.onBoi) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 1 * 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 9.008e-05/0.2693, allocations: 129.7 kB / 1.069 GB, free: 8.629 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.497e-05/0.2693, allocations: 4 kB / 1.069 GB, free: 8.625 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.6e-05/0.2694, allocations: 12.36 kB / 1.069 GB, free: 8.613 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.2694, allocations: 0 / 1.069 GB, free: 8.613 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.2694, allocations: 3.938 kB / 1.069 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.2694, allocations: 4 kB / 1.069 GB, free: 8.605 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001304/0.2695, allocations: 189.6 kB / 1.069 GB, free: 8.371 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-06/0.2695, allocations: 4 kB / 1.069 GB, free: 8.367 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.826e-05/0.2696, allocations: 4 kB / 1.069 GB, free: 8.363 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.2696, allocations: 4 kB / 1.069 GB, free: 8.359 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.069e-05/0.2696, allocations: 3.984 kB / 1.069 GB, free: 8.355 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.2696, allocations: 0 / 1.069 GB, free: 8.355 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.2696, allocations: 11.92 kB / 1.069 GB, free: 8.344 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002556/0.2699, allocations: 117.3 kB / 1.069 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.448e-05/0.27, allocations: 88.94 kB / 1.069 GB, free: 8.105 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.242e-05/0.27, allocations: 12.06 kB / 1.07 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.1e-05/0.2701, allocations: 11.98 kB / 1.07 GB, free: 8.082 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.83e-05/0.2701, allocations: 15.86 kB / 1.07 GB, free: 8.066 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.075e-06/0.2701, allocations: 4 kB / 1.07 GB, free: 8.062 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.908e-05/0.2702, allocations: 99.64 kB / 1.07 GB, free: 7.965 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2702, allocations: 0 / 1.07 GB, free: 7.965 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002214/0.2704, allocations: 28.12 kB / 1.07 GB, free: 7.938 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$whenCondition2,conEquSta.onBoi,conEquSta.hys.y,onSys.y) * Number of discrete states: 1 (conEquSta.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.000539/0.271, allocations: 0.6598 MB / 1.07 GB, free: 7.25 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000404/0.2714, allocations: 171.3 kB / 1.07 GB, free: 7.07 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.2714, allocations: 0 / 1.07 GB, free: 7.07 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001248/0.2715, allocations: 48.03 kB / 1.071 GB, free: 7.023 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002096/0.2717, allocations: 11.88 kB / 1.071 GB, free: 7.012 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001915/0.2737, allocations: 1.598 MB / 1.072 GB, free: 5.316 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002079/0.2739, allocations: 0.6924 MB / 1.073 GB, free: 4.598 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.294e-05/0.2739, allocations: 8 kB / 1.073 GB, free: 4.59 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.157e-05/0.274, allocations: 23.42 kB / 1.073 GB, free: 4.566 MB / 0.8262 GB Notification: Performance of SimCode: time 2.7e-07/0.274, allocations: 0 / 1.073 GB, free: 4.566 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01831/0.2923, allocations: 2.764 MB / 1.075 GB, free: 1.941 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.376/7.668, allocations: 3.484 kB / 1.075 GB, free: 1.941 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff.pipe ; mkfifo Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff.pipe >> ../files/Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_latest_Buildings_Examples_Tutorial_CDL_Controls_Validation_EquipmentOnOff.fmu > Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_Tutorial_CDL_Controls_Validation_EquipmentOnOff.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches