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.009672/0.009672, allocations: 102.5 kB / 15.73 MB, free: 5.539 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.001939/0.001939, allocations: 190.3 kB / 16.67 MB, free: 5.477 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.508/1.508, allocations: 222.9 MB / 240.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.995/2.995, allocations: 461.9 MB / 0.7348 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001592/0.001593, allocations: 68.11 kB / 1.054 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.096/1.098, allocations: 157.4 MB / 1.207 GB, free: 13.52 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff): time 0.002829/1.101, allocations: 0.9191 MB / 1.208 GB, free: 12.61 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001478/1.102, allocations: 0.8857 MB / 1.209 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001419/1.102, allocations: 4 kB / 1.209 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 6.687e-05/1.103, allocations: 7.875 kB / 1.209 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001511/1.103, allocations: 15.8 kB / 1.209 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000273/1.103, allocations: 55.88 kB / 1.209 GB, free: 11.63 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002228/1.103, allocations: 115.7 kB / 1.209 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000206/1.103, allocations: 57.48 kB / 1.209 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001752/1.104, allocations: 55.77 kB / 1.209 GB, free: 11.4 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001398/1.104, allocations: 55.7 kB / 1.209 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.577e-05/1.104, allocations: 12 kB / 1.209 GB, free: 11.33 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 2.571e-05/1.104, allocations: 20 kB / 1.209 GB, free: 11.31 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.687e-05/1.104, allocations: 23.92 kB / 1.209 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 7.292e-05/1.104, allocations: 63.66 kB / 1.209 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002439/1.104, allocations: 149.8 kB / 1.21 GB, free: 11.08 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/1.104, allocations: 0 / 1.21 GB, free: 11.08 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.104e-06/1.104, allocations: 0 / 1.21 GB, free: 11.08 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.975e-06/1.104, allocations: 0 / 1.21 GB, free: 11.08 MB / 0.9356 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.0007688/1.105, allocations: 438.9 kB / 1.21 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/1.105, allocations: 16.03 kB / 1.21 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.144e-05/1.105, allocations: 38.69 kB / 1.21 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.733e-05/1.105, allocations: 20.73 kB / 1.21 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003222/1.106, allocations: 204.9 kB / 1.21 GB, free: 10.29 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.919e-05/1.106, allocations: 8.375 kB / 1.21 GB, free: 10.28 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.862e-05/1.106, allocations: 15.94 kB / 1.21 GB, free: 10.26 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002948/1.106, allocations: 103.1 kB / 1.21 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/1.106, allocations: 3.938 kB / 1.21 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.393e-05/1.106, allocations: 8 kB / 1.21 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/1.106, allocations: 0 / 1.21 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002164/1.106, allocations: 71.95 kB / 1.211 GB, free: 10.07 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007103/1.107, allocations: 404.3 kB / 1.211 GB, free: 9.629 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003105/1.107, allocations: 82.66 kB / 1.211 GB, free: 9.539 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001091/1.107, allocations: 40.84 kB / 1.211 GB, free: 9.496 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.33e-05/1.107, allocations: 3.938 kB / 1.211 GB, free: 9.492 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.883e-05/1.107, allocations: 38.5 kB / 1.211 GB, free: 9.445 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 1.964e-06/1.107, allocations: 0 / 1.211 GB, free: 9.445 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.0004269/1.108, allocations: 121.5 kB / 1.211 GB, free: 9.32 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.829e-05/1.108, allocations: 51.41 kB / 1.211 GB, free: 9.258 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001544/1.108, allocations: 163.1 kB / 1.211 GB, free: 9.09 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.485e-05/1.108, allocations: 25.7 kB / 1.211 GB, free: 9.059 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.184e-05/1.108, allocations: 120.3 kB / 1.212 GB, free: 8.938 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.159e-05/1.108, allocations: 15.7 kB / 1.212 GB, free: 8.922 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.24e-05/1.108, allocations: 29.7 kB / 1.212 GB, free: 8.887 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001135/1.108, allocations: 326.8 kB / 1.212 GB, free: 8.559 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001001/1.109, allocations: 31.92 kB / 1.212 GB, free: 8.527 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001138/1.109, allocations: 50.56 kB / 1.212 GB, free: 8.469 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000161/1.109, allocations: 60.83 kB / 1.212 GB, free: 8.406 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/1.109, allocations: 0 / 1.212 GB, free: 8.406 MB / 0.9356 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002545/1.109, allocations: 117.6 kB / 1.212 GB, free: 8.285 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/1.109, allocations: 4 kB / 1.212 GB, free: 8.281 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/1.109, allocations: 0 / 1.212 GB, free: 8.281 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.993e-05/1.109, allocations: 4 kB / 1.212 GB, free: 8.277 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001004/1.109, allocations: 11.98 kB / 1.212 GB, free: 8.266 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/1.109, allocations: 320 / 1.212 GB, free: 8.266 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.983e-05/1.109, allocations: 15.92 kB / 1.212 GB, free: 8.25 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.604e-05/1.109, allocations: 4 kB / 1.212 GB, free: 8.246 MB / 0.9356 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.0001209/1.11, allocations: 129.8 kB / 1.212 GB, free: 8.109 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.386e-05/1.11, allocations: 15.75 kB / 1.212 GB, free: 8.094 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.521e-05/1.11, allocations: 16.7 kB / 1.212 GB, free: 8.07 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/1.11, allocations: 4 kB / 1.212 GB, free: 8.066 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/1.11, allocations: 0 / 1.212 GB, free: 8.066 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-06/1.11, allocations: 0 / 1.212 GB, free: 8.066 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002951/1.11, allocations: 209.6 kB / 1.213 GB, free: 7.812 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/1.11, allocations: 0 / 1.213 GB, free: 7.812 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.541e-05/1.11, allocations: 15.92 kB / 1.213 GB, free: 7.797 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/1.11, allocations: 4 kB / 1.213 GB, free: 7.793 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.172e-05/1.11, allocations: 0 / 1.213 GB, free: 7.793 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.76e-06/1.11, allocations: 3.984 kB / 1.213 GB, free: 7.789 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/1.11, allocations: 0 / 1.213 GB, free: 7.789 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002921/1.11, allocations: 199.3 kB / 1.213 GB, free: 7.578 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.029e-05/1.111, allocations: 92.86 kB / 1.213 GB, free: 7.469 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.615e-05/1.111, allocations: 4 kB / 1.213 GB, free: 7.465 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001161/1.111, allocations: 15.98 kB / 1.213 GB, free: 7.449 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.337e-05/1.111, allocations: 11.98 kB / 1.213 GB, free: 7.438 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.106e-05/1.111, allocations: 11.92 kB / 1.213 GB, free: 7.426 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001081/1.111, allocations: 114.5 kB / 1.213 GB, free: 7.316 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/1.111, allocations: 0 / 1.213 GB, free: 7.316 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002656/1.111, allocations: 23.92 kB / 1.213 GB, free: 7.293 MB / 0.9356 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.000684/1.112, allocations: 0.7318 MB / 1.214 GB, free: 6.535 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002874/1.112, allocations: 67.95 kB / 1.214 GB, free: 6.469 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/1.112, allocations: 0 / 1.214 GB, free: 6.469 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001049/1.112, allocations: 39.92 kB / 1.214 GB, free: 6.43 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000412/1.113, allocations: 12 kB / 1.214 GB, free: 6.418 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002177/1.115, allocations: 1.662 MB / 1.215 GB, free: 4.676 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002977/1.115, allocations: 0.7007 MB / 1.216 GB, free: 3.949 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 7.69e-05/1.115, allocations: 16.64 kB / 1.216 GB, free: 3.934 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.068e-05/1.115, allocations: 35.42 kB / 1.216 GB, free: 3.898 MB / 0.9356 GB Notification: Performance of SimCode: time 8.92e-07/1.115, allocations: 0 / 1.216 GB, free: 3.898 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02552/1.141, allocations: 2.698 MB / 1.219 GB, free: 1.344 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.568/9.709, allocations: 9.594 kB / 1.219 GB, free: 1.34 MB / 0.9356 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) "" Variables in the reference:time,conSysSta.TRoo,conSysSta.TRooSet,conSysSta.TOut,conSysSta.TOutLow,conSysSta.onSys Variables in the result:TOut.amplitude,TOut.freqHz,TOut.offset,TOut.phase,TOut.startTime,TOut.y,TRoo.amplitude,TRoo.freqHz,TRoo.offset,TRoo.phase,TRoo.startTime,TRoo.y,conSysSta.TOut,conSysSta.TOutLow,conSysSta.TRoo,conSysSta.TRooSet,conSysSta.TSetOut.k,conSysSta.TSetOut.y,conSysSta.TSetRoo.k,conSysSta.TSetRoo.y,conSysSta.and1.u1,conSysSta.and1.u2,conSysSta.and1.y,conSysSta.dTRoo,conSysSta.onSys,conSysSta.onTOut.pre_y_start,conSysSta.onTOut.u,conSysSta.onTOut.uHigh,conSysSta.onTOut.uLow,conSysSta.onTOut.y,conSysSta.onTRoo.pre_y_start,conSysSta.onTRoo.u,conSysSta.onTRoo.uHigh,conSysSta.onTRoo.uLow,conSysSta.onTRoo.y,conSysSta.sub.u1,conSysSta.sub.u2,conSysSta.sub.y,conSysSta.sub1.u1,conSysSta.sub1.u2,conSysSta.sub1.y,time