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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001299/0.001299, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001289/0.001289, allocations: 191.5 kB / 16.14 MB, free: 6.711 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.303/1.303, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.589/2.589, allocations: 461.8 MB / 0.7342 GB, free: 14.19 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 68.38 kB / 0.8985 GB, free: 37.03 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2299/0.2312, allocations: 157.4 MB / 1.052 GB, free: 8.195 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff): time 0.002088/0.2333, allocations: 0.9777 MB / 1.053 GB, free: 7.215 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009345/0.2342, allocations: 0.8897 MB / 1.054 GB, free: 6.312 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.494e-05/0.2343, allocations: 4 kB / 1.054 GB, free: 6.309 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.348e-05/0.2344, allocations: 7.922 kB / 1.054 GB, free: 6.301 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.869e-05/0.2345, allocations: 7.875 kB / 1.054 GB, free: 6.293 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001582/0.2346, allocations: 43.95 kB / 1.054 GB, free: 6.25 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001211/0.2348, allocations: 123.6 kB / 1.054 GB, free: 6.129 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001268/0.2349, allocations: 53.48 kB / 1.054 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.732e-05/0.235, allocations: 43.84 kB / 1.054 GB, free: 6.027 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.339e-05/0.2351, allocations: 47.77 kB / 1.054 GB, free: 5.98 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.522e-05/0.2351, allocations: 4 kB / 1.054 GB, free: 5.977 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.747e-05/0.2352, allocations: 11.94 kB / 1.054 GB, free: 5.965 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.68e-05/0.2352, allocations: 27.91 kB / 1.054 GB, free: 5.938 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.076e-05/0.2352, allocations: 47.72 kB / 1.054 GB, free: 5.891 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001399/0.2354, allocations: 147.7 kB / 1.055 GB, free: 5.746 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.2354, allocations: 0 / 1.055 GB, free: 5.746 MB / 0.8106 GB Notification: Performance of FrontEnd: time 6.71e-07/0.2354, allocations: 4 kB / 1.055 GB, free: 5.742 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.947e-06/0.2354, allocations: 0 / 1.055 GB, free: 5.742 MB / 0.8106 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.0005337/0.236, allocations: 423 kB / 1.055 GB, free: 5.281 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/0.236, allocations: 15.91 kB / 1.055 GB, free: 5.266 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.977e-05/0.236, allocations: 46.69 kB / 1.055 GB, free: 5.211 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.64e-05/0.2361, allocations: 12.84 kB / 1.055 GB, free: 5.199 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002425/0.2363, allocations: 217.7 kB / 1.055 GB, free: 4.949 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.154e-05/0.2364, allocations: 8.375 kB / 1.055 GB, free: 4.941 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.043e-05/0.2364, allocations: 11.94 kB / 1.055 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002044/0.2366, allocations: 107.3 kB / 1.055 GB, free: 4.82 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.262e-06/0.2366, allocations: 0 / 1.055 GB, free: 4.82 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.227e-05/0.2366, allocations: 4 kB / 1.055 GB, free: 4.816 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.2366, allocations: 8 kB / 1.055 GB, free: 4.809 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001725/0.2368, allocations: 63.95 kB / 1.055 GB, free: 4.746 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005174/0.2373, allocations: 408.3 kB / 1.056 GB, free: 4.297 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002389/0.2376, allocations: 86.66 kB / 1.056 GB, free: 4.203 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.426e-05/0.2377, allocations: 40.78 kB / 1.056 GB, free: 4.16 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.507e-05/0.2377, allocations: 4 kB / 1.056 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.759e-05/0.2377, allocations: 34.5 kB / 1.056 GB, free: 4.113 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.172e-06/0.2377, allocations: 4 kB / 1.056 GB, free: 4.109 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003233/0.2381, allocations: 117.7 kB / 1.056 GB, free: 3.988 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.715e-05/0.2381, allocations: 55.39 kB / 1.056 GB, free: 3.922 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001159/0.2382, allocations: 162.8 kB / 1.056 GB, free: 3.754 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.2382, allocations: 29.7 kB / 1.056 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.278e-05/0.2383, allocations: 108.3 kB / 1.056 GB, free: 3.609 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.176e-05/0.2383, allocations: 19.73 kB / 1.056 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.311e-05/0.2384, allocations: 25.72 kB / 1.057 GB, free: 3.559 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.818e-05/0.2385, allocations: 330.8 kB / 1.057 GB, free: 3.227 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.56e-05/0.2386, allocations: 35.91 kB / 1.057 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.855e-05/0.2387, allocations: 46.56 kB / 1.057 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001358/0.2388, allocations: 65.05 kB / 1.057 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.654e-06/0.2388, allocations: 0 / 1.057 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002032/0.239, allocations: 121.3 kB / 1.057 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.184e-05/0.239, allocations: 5.094 kB / 1.057 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.239, allocations: 0 / 1.057 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.2391, allocations: 4 kB / 1.057 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.896e-05/0.2391, allocations: 11.98 kB / 1.057 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.2392, allocations: 0 / 1.057 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.631e-05/0.2392, allocations: 11.98 kB / 1.057 GB, free: 2.914 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.306e-06/0.2393, allocations: 7.938 kB / 1.057 GB, free: 2.906 MB / 0.8106 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 8.301e-05/0.2394, allocations: 122.7 kB / 1.057 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.147e-05/0.2394, allocations: 11.84 kB / 1.057 GB, free: 2.766 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.052e-05/0.2394, allocations: 12.72 kB / 1.057 GB, free: 2.754 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.2394, allocations: 4 kB / 1.057 GB, free: 2.75 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.2394, allocations: 0 / 1.057 GB, free: 2.75 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.2394, allocations: 3.984 kB / 1.057 GB, free: 2.746 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001819/0.2396, allocations: 213.5 kB / 1.057 GB, free: 2.488 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.2396, allocations: 4 kB / 1.057 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.527e-05/0.2397, allocations: 19.92 kB / 1.057 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.2397, allocations: 0 / 1.057 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.516e-06/0.2397, allocations: 0 / 1.057 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.2397, allocations: 0 / 1.057 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2398, allocations: 0 / 1.057 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002205/0.24, allocations: 195.3 kB / 1.058 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.853e-05/0.24, allocations: 100.9 kB / 1.058 GB, free: 2.141 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.119e-05/0.24, allocations: 0 / 1.058 GB, free: 2.141 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001063/0.2402, allocations: 8 kB / 1.058 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.36e-05/0.2402, allocations: 15.97 kB / 1.058 GB, free: 2.117 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.257e-06/0.2402, allocations: 7.984 kB / 1.058 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.741e-05/0.2403, allocations: 115 kB / 1.058 GB, free: 2 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2403, allocations: 0 / 1.058 GB, free: 2 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002239/0.2405, allocations: 19.91 kB / 1.058 GB, free: 1.98 MB / 0.8106 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.0004413/0.241, allocations: 0.7357 MB / 1.059 GB, free: 1.219 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002009/0.2412, allocations: 71.98 kB / 1.059 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.2412, allocations: 192 / 1.059 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.681e-05/0.2413, allocations: 43.92 kB / 1.059 GB, free: 1.105 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002631/0.2416, allocations: 11.94 kB / 1.059 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001548/0.2431, allocations: 1.674 MB / 1.06 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002004/0.2433, allocations: 0.7002 MB / 1.061 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.061e-05/0.2434, allocations: 20.64 kB / 1.061 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.203e-05/0.2435, allocations: 35.42 kB / 1.061 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of SimCode: time 2.01e-07/0.2435, allocations: 0 / 1.061 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2631/0.5066, allocations: 2.361 MB / 1.063 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001994/0.5068, allocations: 220.4 kB / 1.064 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.824/2.331, allocations: 7.875 kB / 1.064 GB, free: 12.08 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 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.mat","/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