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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.005019/0.005019, allocations: 101.8 kB / 15.73 MB, free: 6.062 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.001504/0.001504, allocations: 192.2 kB / 16.67 MB, free: 5.973 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.402/1.402, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.801/2.801, allocations: 482.4 MB / 0.7548 GB, free: 6.848 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001979/0.001979, allocations: 69.02 kB / 1.083 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.2777, allocations: 162.2 MB / 1.241 GB, free: 9.273 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff): time 0.002166/0.2798, allocations: 0.9075 MB / 1.242 GB, free: 8.363 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001185/0.2811, allocations: 0.8949 MB / 1.243 GB, free: 7.457 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.446e-05/0.2811, allocations: 4 kB / 1.243 GB, free: 7.453 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.591e-05/0.2812, allocations: 15.8 kB / 1.243 GB, free: 7.438 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.932e-05/0.2813, allocations: 11.81 kB / 1.243 GB, free: 7.426 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.000184/0.2815, allocations: 39.94 kB / 1.243 GB, free: 7.387 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001621/0.2817, allocations: 127.7 kB / 1.243 GB, free: 7.262 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001456/0.2818, allocations: 57.44 kB / 1.243 GB, free: 7.199 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001241/0.2819, allocations: 47.84 kB / 1.243 GB, free: 7.152 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001013/0.282, allocations: 55.7 kB / 1.244 GB, free: 7.098 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.219e-05/0.2821, allocations: 12 kB / 1.244 GB, free: 7.086 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 2.331e-05/0.2821, allocations: 12 kB / 1.244 GB, free: 7.074 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.967e-05/0.2822, allocations: 35.89 kB / 1.244 GB, free: 7.039 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.637e-05/0.2822, allocations: 59.67 kB / 1.244 GB, free: 6.98 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002116/0.2824, allocations: 155.6 kB / 1.244 GB, free: 6.828 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.2825, allocations: 8 kB / 1.244 GB, free: 6.82 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.152e-06/0.2825, allocations: 0 / 1.244 GB, free: 6.82 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 9.347e-06/0.2825, allocations: 0 / 1.244 GB, free: 6.82 MB / 0.9669 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.0006512/0.2831, allocations: 434.8 kB / 1.244 GB, free: 6.348 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.2832, allocations: 8.031 kB / 1.244 GB, free: 6.34 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.056e-05/0.2832, allocations: 38.75 kB / 1.244 GB, free: 6.293 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.926e-05/0.2833, allocations: 16.84 kB / 1.244 GB, free: 6.277 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003172/0.2836, allocations: 228.8 kB / 1.245 GB, free: 6.016 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.735e-05/0.2836, allocations: 8.375 kB / 1.245 GB, free: 6.008 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.944e-05/0.2837, allocations: 11.94 kB / 1.245 GB, free: 5.996 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002357/0.2839, allocations: 105.6 kB / 1.245 GB, free: 5.887 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.2839, allocations: 3.984 kB / 1.245 GB, free: 5.883 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.573e-05/0.2839, allocations: 8 kB / 1.245 GB, free: 5.875 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.678e-06/0.284, allocations: 0 / 1.245 GB, free: 5.875 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002085/0.2842, allocations: 67.95 kB / 1.245 GB, free: 5.809 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006163/0.2848, allocations: 400.6 kB / 1.245 GB, free: 5.367 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002869/0.2851, allocations: 86.59 kB / 1.245 GB, free: 5.273 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00011/0.2852, allocations: 40.84 kB / 1.245 GB, free: 5.23 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.8e-05/0.2852, allocations: 0 / 1.245 GB, free: 5.23 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.263e-05/0.2853, allocations: 46.5 kB / 1.245 GB, free: 5.176 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.052e-06/0.2853, allocations: 0 / 1.245 GB, free: 5.176 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0003884/0.2857, allocations: 121.7 kB / 1.245 GB, free: 5.051 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.076e-05/0.2857, allocations: 51.41 kB / 1.245 GB, free: 4.988 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001526/0.2859, allocations: 165.8 kB / 1.246 GB, free: 4.82 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.579e-05/0.2859, allocations: 29.7 kB / 1.246 GB, free: 4.785 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.453e-05/0.286, allocations: 108.3 kB / 1.246 GB, free: 4.676 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.735e-05/0.286, allocations: 23.78 kB / 1.246 GB, free: 4.652 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.239e-05/0.2861, allocations: 21.72 kB / 1.246 GB, free: 4.625 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001537/0.2862, allocations: 326.8 kB / 1.246 GB, free: 4.297 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001044/0.2864, allocations: 27.98 kB / 1.246 GB, free: 4.27 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001193/0.2865, allocations: 58.55 kB / 1.246 GB, free: 4.203 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001698/0.2867, allocations: 56.77 kB / 1.246 GB, free: 4.145 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2867, allocations: 7.938 kB / 1.246 GB, free: 4.137 MB / 0.9669 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002627/0.2869, allocations: 117.6 kB / 1.246 GB, free: 4.016 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.287, allocations: 4 kB / 1.246 GB, free: 4.012 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.287, allocations: 0 / 1.246 GB, free: 4.012 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.071e-05/0.287, allocations: 7.969 kB / 1.246 GB, free: 4.004 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.904e-05/0.2871, allocations: 15.98 kB / 1.246 GB, free: 3.988 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.999e-06/0.2871, allocations: 0 / 1.246 GB, free: 3.988 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.414e-05/0.2872, allocations: 7.984 kB / 1.246 GB, free: 3.98 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.089e-05/0.2872, allocations: 4 kB / 1.246 GB, free: 3.977 MB / 0.9669 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.0001116/0.2873, allocations: 125.4 kB / 1.246 GB, free: 3.848 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.154e-05/0.2874, allocations: 19.84 kB / 1.247 GB, free: 3.828 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.835e-05/0.2874, allocations: 16.72 kB / 1.247 GB, free: 3.809 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.2874, allocations: 4 kB / 1.247 GB, free: 3.805 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.2874, allocations: 0 / 1.247 GB, free: 3.805 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.2874, allocations: 3.984 kB / 1.247 GB, free: 3.801 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002507/0.2877, allocations: 209.5 kB / 1.247 GB, free: 3.547 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.2877, allocations: 0 / 1.247 GB, free: 3.547 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.685e-05/0.2878, allocations: 23.86 kB / 1.247 GB, free: 3.523 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.2878, allocations: 0 / 1.247 GB, free: 3.523 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.157e-06/0.2878, allocations: 0 / 1.247 GB, free: 3.523 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.532e-06/0.2878, allocations: 0 / 1.247 GB, free: 3.523 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.2878, allocations: 0 / 1.247 GB, free: 3.523 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002889/0.2881, allocations: 191.5 kB / 1.247 GB, free: 3.32 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.099e-05/0.2882, allocations: 96.95 kB / 1.247 GB, free: 3.207 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.491e-05/0.2882, allocations: 3.984 kB / 1.247 GB, free: 3.203 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001176/0.2884, allocations: 4 kB / 1.247 GB, free: 3.199 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.64e-05/0.2884, allocations: 23.95 kB / 1.247 GB, free: 3.176 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.572e-06/0.2884, allocations: 0 / 1.247 GB, free: 3.176 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 9.309e-05/0.2886, allocations: 126.5 kB / 1.247 GB, free: 3.055 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2886, allocations: 0 / 1.247 GB, free: 3.055 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002491/0.2888, allocations: 20 kB / 1.247 GB, free: 3.035 MB / 0.9669 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.0006222/0.2894, allocations: 0.7318 MB / 1.248 GB, free: 2.277 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002527/0.2897, allocations: 76.36 kB / 1.248 GB, free: 2.203 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.2897, allocations: 0 / 1.248 GB, free: 2.203 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001065/0.2898, allocations: 39.97 kB / 1.248 GB, free: 2.164 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002875/0.2901, allocations: 12.28 kB / 1.248 GB, free: 2.152 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002019/0.2921, allocations: 1.664 MB / 1.25 GB, free: 420 kB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003551/0.2925, allocations: 0.7041 MB / 1.25 GB, free: 15.68 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.917e-05/0.2926, allocations: 12.66 kB / 1.25 GB, free: 15.67 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.815e-05/0.2927, allocations: 35.42 kB / 1.25 GB, free: 15.63 MB / 0.9825 GB Notification: Performance of SimCode: time 3.41e-07/0.2927, allocations: 0 / 1.25 GB, free: 15.63 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02352/0.3162, allocations: 2.666 MB / 1.253 GB, free: 13.11 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.759/8.076, allocations: 6.766 kB / 1.253 GB, free: 13.11 MB / 0.9825 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 400 --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