Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.SystemOnOff,fileNamePrefix="Buildings_latest_Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff,fileNamePrefix="Buildings_latest_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.00135/0.00135, 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.001408/0.001408, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.285/1.285, 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 11.0.1-master/package.mo): time 2.676/2.676, allocations: 469.4 MB / 0.742 GB, free: 7.695 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 61.81 kB / 0.9083 GB, free: 34.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2988/0.3, allocations: 159.1 MB / 1.064 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff): time 0.002493/0.3026, allocations: 0.9246 MB / 1.065 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001181/0.3038, allocations: 0.8819 MB / 1.065 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.547e-05/0.3039, allocations: 4 kB / 1.065 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.797e-05/0.304, allocations: 11.81 kB / 1.065 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001155/0.3041, allocations: 19.78 kB / 1.065 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002196/0.3043, allocations: 47.95 kB / 1.066 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001602/0.3045, allocations: 123.6 kB / 1.066 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001616/0.3047, allocations: 53.5 kB / 1.066 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001311/0.3048, allocations: 51.78 kB / 1.066 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001015/0.3049, allocations: 59.75 kB / 1.066 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.931e-05/0.3049, allocations: 12 kB / 1.066 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 2.28e-05/0.305, allocations: 16 kB / 1.066 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.431e-05/0.305, allocations: 27.92 kB / 1.066 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.395e-05/0.3051, allocations: 59.66 kB / 1.066 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001731/0.3053, allocations: 147.8 kB / 1.066 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.3053, allocations: 3.938 kB / 1.066 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.373e-06/0.3053, allocations: 0 / 1.066 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.177e-06/0.3053, allocations: 0 / 1.066 GB, free: 12.08 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0006561/0.306, allocations: 431 kB / 1.066 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.634e-05/0.306, allocations: 16.03 kB / 1.066 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.525e-05/0.3061, allocations: 38.73 kB / 1.067 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.11e-05/0.3061, allocations: 16.75 kB / 1.067 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002989/0.3064, allocations: 222.2 kB / 1.067 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.408e-05/0.3064, allocations: 4.375 kB / 1.067 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.194e-05/0.3065, allocations: 15.94 kB / 1.067 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002244/0.3067, allocations: 101.6 kB / 1.067 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.3067, allocations: 4 kB / 1.067 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.513e-05/0.3067, allocations: 4 kB / 1.067 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.3068, allocations: 0 / 1.067 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002025/0.307, allocations: 71.95 kB / 1.067 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006193/0.3076, allocations: 408.3 kB / 1.067 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002728/0.3079, allocations: 82.61 kB / 1.067 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001014/0.308, allocations: 44.83 kB / 1.067 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.187e-05/0.308, allocations: 8.078 kB / 1.067 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.076e-05/0.308, allocations: 38.5 kB / 1.067 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/0.308, allocations: 0 / 1.067 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0003777/0.3084, allocations: 121.5 kB / 1.068 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.108e-05/0.3085, allocations: 55.41 kB / 1.068 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001244/0.3086, allocations: 156.4 kB / 1.068 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.508e-05/0.3086, allocations: 33.7 kB / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.055e-05/0.3087, allocations: 104.3 kB / 1.068 GB, free: 9.938 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.359e-05/0.3087, allocations: 23.75 kB / 1.068 GB, free: 9.914 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.926e-05/0.3088, allocations: 29.64 kB / 1.068 GB, free: 9.879 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001053/0.3089, allocations: 318.8 kB / 1.068 GB, free: 9.559 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.228e-05/0.309, allocations: 35.98 kB / 1.068 GB, free: 9.523 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001066/0.3091, allocations: 50.55 kB / 1.068 GB, free: 9.465 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001541/0.3093, allocations: 60.86 kB / 1.068 GB, free: 9.402 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.3093, allocations: 0 / 1.068 GB, free: 9.402 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002265/0.3095, allocations: 109.4 kB / 1.069 GB, free: 9.289 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2e-05/0.3096, allocations: 11.98 kB / 1.069 GB, free: 9.277 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.293e-06/0.3096, allocations: 0 / 1.069 GB, free: 9.277 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.3096, allocations: 3.938 kB / 1.069 GB, free: 9.273 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.488e-05/0.3097, allocations: 12 kB / 1.069 GB, free: 9.262 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.257e-06/0.3097, allocations: 8.203 kB / 1.069 GB, free: 9.254 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.049e-05/0.3098, allocations: 12 kB / 1.069 GB, free: 9.242 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.386e-06/0.3098, allocations: 0 / 1.069 GB, free: 9.242 MB / 0.8262 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 (9): * Single equations (assignments): 9 * 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.0001018/0.3099, allocations: 129.8 kB / 1.069 GB, free: 9.105 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.694e-05/0.31, allocations: 15.75 kB / 1.069 GB, free: 9.09 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.667e-05/0.31, allocations: 12.72 kB / 1.069 GB, free: 9.078 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.31, allocations: 3.984 kB / 1.069 GB, free: 9.074 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.31, allocations: 0 / 1.069 GB, free: 9.074 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.31, allocations: 0 / 1.069 GB, free: 9.074 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002132/0.3102, allocations: 225.5 kB / 1.069 GB, free: 8.805 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.3103, allocations: 0 / 1.069 GB, free: 8.805 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.747e-05/0.3103, allocations: 11.94 kB / 1.069 GB, free: 8.793 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.3103, allocations: 0 / 1.069 GB, free: 8.793 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.149e-05/0.3104, allocations: 3.984 kB / 1.069 GB, free: 8.789 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.618e-06/0.3104, allocations: 4 kB / 1.069 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.3104, allocations: 0 / 1.069 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002568/0.3106, allocations: 195.4 kB / 1.069 GB, free: 8.578 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.563e-05/0.3107, allocations: 84.95 kB / 1.069 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.679e-05/0.3107, allocations: 8 kB / 1.069 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001192/0.3108, allocations: 7.984 kB / 1.069 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.616e-05/0.3109, allocations: 19.97 kB / 1.069 GB, free: 8.441 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.035e-06/0.3109, allocations: 4 kB / 1.069 GB, free: 8.438 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.209e-05/0.311, allocations: 117 kB / 1.069 GB, free: 8.324 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.311, allocations: 0 / 1.069 GB, free: 8.324 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002398/0.3113, allocations: 19.91 kB / 1.069 GB, free: 8.305 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: 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 (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 Backend phase and start with SimCode phase: time 0.0005532/0.3118, allocations: 0.7405 MB / 1.07 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002363/0.3121, allocations: 71.97 kB / 1.07 GB, free: 7.469 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.3121, allocations: 4 kB / 1.07 GB, free: 7.465 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.511e-05/0.3122, allocations: 39.97 kB / 1.07 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003233/0.3125, allocations: 13.56 kB / 1.07 GB, free: 7.414 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001884/0.3144, allocations: 1.648 MB / 1.072 GB, free: 5.688 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002663/0.3147, allocations: 0.7041 MB / 1.073 GB, free: 4.957 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.245e-05/0.3148, allocations: 8.859 kB / 1.073 GB, free: 4.949 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.977e-05/0.3149, allocations: 35.41 kB / 1.073 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of SimCode: time 5.91e-07/0.3149, allocations: 3.938 kB / 1.073 GB, free: 4.91 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01979/0.3347, allocations: 2.614 MB / 1.075 GB, free: 2.418 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.325/7.66, allocations: 10.52 kB / 1.075 GB, free: 2.41 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe ; mkfifo Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe >> ../files/Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff.fmu > Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches