Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff,fileNamePrefix="Buildings_10_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.007696/0.007696, allocations: 105.3 kB / 15.74 MB, free: 6.488 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.001827/0.001827, allocations: 194.9 kB / 16.68 MB, free: 6.375 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.409/1.409, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.81/2.81, allocations: 437.1 MB / 0.7105 GB, free: 4.98 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 67.89 kB / 1.018 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3297/0.3311, allocations: 151.6 MB / 1.166 GB, free: 7.328 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff): time 0.002617/0.3338, allocations: 0.881 MB / 1.167 GB, free: 6.438 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001342/0.3352, allocations: 0.8701 MB / 1.168 GB, free: 5.555 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001102/0.3354, allocations: 4 kB / 1.168 GB, free: 5.551 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 5.258e-05/0.3355, allocations: 11.86 kB / 1.168 GB, free: 5.539 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001124/0.3356, allocations: 11.81 kB / 1.168 GB, free: 5.527 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002463/0.3358, allocations: 47.88 kB / 1.168 GB, free: 5.48 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001739/0.336, allocations: 107.7 kB / 1.168 GB, free: 5.375 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001745/0.3362, allocations: 41.09 kB / 1.168 GB, free: 5.332 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000163/0.3364, allocations: 51.83 kB / 1.168 GB, free: 5.281 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001223/0.3365, allocations: 51.7 kB / 1.168 GB, free: 5.23 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.073e-05/0.3365, allocations: 12 kB / 1.168 GB, free: 5.219 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 2.518e-05/0.3366, allocations: 12 kB / 1.168 GB, free: 5.207 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.5e-05/0.3366, allocations: 19.92 kB / 1.168 GB, free: 5.188 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 6.722e-05/0.3367, allocations: 47.73 kB / 1.168 GB, free: 5.141 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001891/0.3369, allocations: 130.3 kB / 1.168 GB, free: 5.016 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.3369, allocations: 0 / 1.168 GB, free: 5.016 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.964e-06/0.3369, allocations: 0 / 1.168 GB, free: 5.016 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.164e-06/0.3369, allocations: 4 kB / 1.168 GB, free: 5.012 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0009707/0.3379, allocations: 455.8 kB / 1.169 GB, free: 4.516 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/0.338, allocations: 8.031 kB / 1.169 GB, free: 4.508 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.673e-05/0.338, allocations: 42.73 kB / 1.169 GB, free: 4.457 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.101e-05/0.3381, allocations: 8.844 kB / 1.169 GB, free: 4.449 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002003/0.3383, allocations: 194.2 kB / 1.169 GB, free: 4.223 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.822e-05/0.3383, allocations: 12.31 kB / 1.169 GB, free: 4.211 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.275e-05/0.3383, allocations: 8.375 kB / 1.169 GB, free: 4.203 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002525/0.3386, allocations: 96.88 kB / 1.169 GB, free: 4.105 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.3386, allocations: 3.938 kB / 1.169 GB, free: 4.102 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.524e-05/0.3386, allocations: 4 kB / 1.169 GB, free: 4.098 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.3386, allocations: 0 / 1.169 GB, free: 4.098 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001848/0.3388, allocations: 67.89 kB / 1.169 GB, free: 4.031 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008004/0.3396, allocations: 404.5 kB / 1.17 GB, free: 3.586 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001578/0.3398, allocations: 58.5 kB / 1.17 GB, free: 3.52 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.54e-05/0.3399, allocations: 36.97 kB / 1.17 GB, free: 3.48 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.062e-05/0.3399, allocations: 0 / 1.17 GB, free: 3.48 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.543e-05/0.34, allocations: 30.56 kB / 1.17 GB, free: 3.441 MB / 0.92 GB Notification: Performance of pre-optimization done (n=5): time 1.183e-06/0.34, allocations: 0 / 1.17 GB, free: 3.441 MB / 0.92 GB Notification: Performance of matching and sorting (n=5): time 0.0004069/0.3404, allocations: 117.5 kB / 1.17 GB, free: 3.32 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.309e-05/0.3404, allocations: 59.34 kB / 1.17 GB, free: 3.25 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001473/0.3406, allocations: 164.7 kB / 1.17 GB, free: 3.082 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.91e-05/0.3406, allocations: 29.64 kB / 1.17 GB, free: 3.047 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 7.152e-05/0.3407, allocations: 104 kB / 1.17 GB, free: 2.941 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.5e-05/0.3407, allocations: 16.03 kB / 1.17 GB, free: 2.926 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.666e-05/0.3408, allocations: 21.7 kB / 1.17 GB, free: 2.898 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001389/0.3409, allocations: 322.8 kB / 1.171 GB, free: 2.574 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.761e-05/0.341, allocations: 27.98 kB / 1.171 GB, free: 2.547 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.133e-05/0.3411, allocations: 31.98 kB / 1.171 GB, free: 2.516 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001319/0.3412, allocations: 44.83 kB / 1.171 GB, free: 2.469 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.3412, allocations: 0 / 1.171 GB, free: 2.469 MB / 0.92 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000209/0.3415, allocations: 93.52 kB / 1.171 GB, free: 2.371 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.3415, allocations: 8 kB / 1.171 GB, free: 2.363 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.3415, allocations: 0 / 1.171 GB, free: 2.363 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/0.3415, allocations: 256 / 1.171 GB, free: 2.363 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/0.3416, allocations: 15.98 kB / 1.171 GB, free: 2.348 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.496e-05/0.3417, allocations: 7.938 kB / 1.171 GB, free: 2.34 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000171/0.3418, allocations: 31.81 kB / 1.171 GB, free: 2.309 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.332e-05/0.3419, allocations: 4 kB / 1.171 GB, free: 2.305 MB / 0.92 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 (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 prepare postOptimizeDAE: time 0.0001121/0.342, allocations: 125.8 kB / 1.171 GB, free: 2.172 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.191e-05/0.342, allocations: 7.906 kB / 1.171 GB, free: 2.164 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.315e-05/0.3421, allocations: 16.31 kB / 1.171 GB, free: 2.148 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-06/0.3421, allocations: 0 / 1.171 GB, free: 2.148 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.3421, allocations: 3.938 kB / 1.171 GB, free: 2.145 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/0.3421, allocations: 0 / 1.171 GB, free: 2.145 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002302/0.3423, allocations: 201.6 kB / 1.171 GB, free: 1.898 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.3423, allocations: 0 / 1.171 GB, free: 1.898 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.931e-05/0.3424, allocations: 7.984 kB / 1.171 GB, free: 1.891 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.3424, allocations: 3.938 kB / 1.171 GB, free: 1.887 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.332e-05/0.3424, allocations: 8 kB / 1.171 GB, free: 1.879 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.3424, allocations: 4 kB / 1.171 GB, free: 1.875 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.3425, allocations: 4.172 kB / 1.171 GB, free: 1.871 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000241/0.3427, allocations: 175.4 kB / 1.171 GB, free: 1.684 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.443e-05/0.3428, allocations: 89.02 kB / 1.171 GB, free: 1.578 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.12e-05/0.3428, allocations: 0 / 1.171 GB, free: 1.578 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001904/0.343, allocations: 35.89 kB / 1.171 GB, free: 1.543 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.191e-05/0.3431, allocations: 15.92 kB / 1.171 GB, free: 1.527 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.076e-05/0.3431, allocations: 4 kB / 1.171 GB, free: 1.523 MB / 0.92 GB Notification: Performance of sorting global known variables: time 8.876e-05/0.3432, allocations: 120 kB / 1.172 GB, free: 1.406 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3432, allocations: 0 / 1.172 GB, free: 1.406 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002423/0.3434, allocations: 19.84 kB / 1.172 GB, free: 1.387 MB / 0.92 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 (5): * Single equations (assignments): 5 * 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.000614/0.344, allocations: 0.7319 MB / 1.172 GB, free: 0.6289 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002376/0.3443, allocations: 60.09 kB / 1.172 GB, free: 0.5703 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3443, allocations: 0 / 1.172 GB, free: 0.5703 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 9.953e-05/0.3444, allocations: 47.91 kB / 1.172 GB, free: 0.5234 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003794/0.3448, allocations: 11.94 kB / 1.172 GB, free: 0.5117 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001881/0.3467, allocations: 1.589 MB / 1.174 GB, free: 14.85 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002976/0.347, allocations: 0.7002 MB / 1.175 GB, free: 14.12 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.46e-05/0.3471, allocations: 7.984 kB / 1.175 GB, free: 14.12 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.705e-05/0.3472, allocations: 27.42 kB / 1.175 GB, free: 14.09 MB / 0.9356 GB Notification: Performance of SimCode: time 6.61e-07/0.3472, allocations: 0 / 1.175 GB, free: 14.09 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02298/0.3702, allocations: 2.759 MB / 1.177 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.619/8.989, allocations: 10.64 kB / 1.177 GB, free: 11.45 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe ; mkfifo Buildings_10_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe >> ../files/Buildings_10_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff_res.mat --tempDir=temp_Buildings_10_Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff.fmu > Buildings_10_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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.bandwidth,conSysSta.onTOut.pre_y_start,conSysSta.onTOut.reference,conSysSta.onTOut.u,conSysSta.onTOut.y,conSysSta.onTRoo.bandwidth,conSysSta.onTRoo.pre_y_start,conSysSta.onTRoo.reference,conSysSta.onTRoo.u,conSysSta.onTRoo.y,time