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.008237/0.008236, allocations: 102.6 kB / 15.73 MB, free: 6.496 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.001803/0.001803, allocations: 195.7 kB / 16.67 MB, free: 6.379 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.662/1.662, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.248/3.248, allocations: 461.9 MB / 0.7348 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0016/0.0016, allocations: 63.91 kB / 1.054 GB, free: 7.633 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3621/0.3638, allocations: 157.4 MB / 1.207 GB, free: 10.13 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff): time 0.002543/0.3664, allocations: 0.9032 MB / 1.208 GB, free: 9.223 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001475/0.3679, allocations: 0.8935 MB / 1.209 GB, free: 8.316 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001149/0.368, allocations: 4 kB / 1.209 GB, free: 8.312 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 5.459e-05/0.3681, allocations: 11.81 kB / 1.209 GB, free: 8.301 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001361/0.3683, allocations: 15.8 kB / 1.209 GB, free: 8.285 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.000233/0.3685, allocations: 39.95 kB / 1.209 GB, free: 8.246 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001886/0.3687, allocations: 127.7 kB / 1.209 GB, free: 8.121 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001857/0.3689, allocations: 61.48 kB / 1.209 GB, free: 8.055 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001597/0.3691, allocations: 55.73 kB / 1.209 GB, free: 8 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001205/0.3692, allocations: 55.75 kB / 1.209 GB, free: 7.945 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.949e-05/0.3692, allocations: 12 kB / 1.209 GB, free: 7.934 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 2.759e-05/0.3693, allocations: 16 kB / 1.209 GB, free: 7.918 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.884e-05/0.3693, allocations: 23.91 kB / 1.209 GB, free: 7.895 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.671e-05/0.3694, allocations: 55.67 kB / 1.209 GB, free: 7.84 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002362/0.3696, allocations: 163.6 kB / 1.21 GB, free: 7.68 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.3697, allocations: 4 kB / 1.21 GB, free: 7.676 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.883e-06/0.3697, allocations: 0 / 1.21 GB, free: 7.676 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 8.085e-06/0.3697, allocations: 0 / 1.21 GB, free: 7.676 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.0007314/0.3704, allocations: 431 kB / 1.21 GB, free: 7.207 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/0.3705, allocations: 12.62 kB / 1.21 GB, free: 7.195 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.146e-05/0.3705, allocations: 38.75 kB / 1.21 GB, free: 7.148 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.578e-05/0.3706, allocations: 20.69 kB / 1.21 GB, free: 7.129 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003274/0.3709, allocations: 216.8 kB / 1.21 GB, free: 6.879 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.845e-05/0.371, allocations: 12.31 kB / 1.21 GB, free: 6.867 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.531e-05/0.371, allocations: 15.94 kB / 1.21 GB, free: 6.852 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002581/0.3713, allocations: 99.67 kB / 1.21 GB, free: 6.75 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.3713, allocations: 0 / 1.21 GB, free: 6.75 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.842e-05/0.3713, allocations: 8 kB / 1.21 GB, free: 6.742 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.3713, allocations: 0 / 1.21 GB, free: 6.742 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002031/0.3715, allocations: 67.95 kB / 1.211 GB, free: 6.676 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007001/0.3723, allocations: 408.3 kB / 1.211 GB, free: 6.227 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002819/0.3726, allocations: 82.59 kB / 1.211 GB, free: 6.137 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001004/0.3727, allocations: 40.84 kB / 1.211 GB, free: 6.094 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.333e-05/0.3727, allocations: 3.984 kB / 1.211 GB, free: 6.09 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.397e-05/0.3727, allocations: 46.5 kB / 1.211 GB, free: 6.035 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.964e-06/0.3727, allocations: 0 / 1.211 GB, free: 6.035 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004109/0.3732, allocations: 121.5 kB / 1.211 GB, free: 5.91 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.384e-05/0.3732, allocations: 55.34 kB / 1.211 GB, free: 5.844 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001624/0.3734, allocations: 164.4 kB / 1.211 GB, free: 5.676 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 4.038e-05/0.3734, allocations: 29.7 kB / 1.211 GB, free: 5.641 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001017/0.3735, allocations: 108.3 kB / 1.212 GB, free: 5.531 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.162e-05/0.3736, allocations: 27.78 kB / 1.212 GB, free: 5.504 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.695e-05/0.3736, allocations: 25.72 kB / 1.212 GB, free: 5.473 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000125/0.3738, allocations: 322.8 kB / 1.212 GB, free: 5.148 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001008/0.3739, allocations: 31.97 kB / 1.212 GB, free: 5.117 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001163/0.374, allocations: 54.56 kB / 1.212 GB, free: 5.055 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001583/0.3742, allocations: 60.77 kB / 1.212 GB, free: 4.992 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.3742, allocations: 192 / 1.212 GB, free: 4.992 MB / 0.9669 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002462/0.3744, allocations: 113.4 kB / 1.212 GB, free: 4.875 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.3745, allocations: 4 kB / 1.212 GB, free: 4.871 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.273e-06/0.3745, allocations: 0 / 1.212 GB, free: 4.871 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.3745, allocations: 8.031 kB / 1.212 GB, free: 4.863 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001037/0.3746, allocations: 15.92 kB / 1.212 GB, free: 4.848 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.3746, allocations: 0 / 1.212 GB, free: 4.848 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001087/0.3747, allocations: 11.89 kB / 1.212 GB, free: 4.836 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.275e-05/0.3748, allocations: 4 kB / 1.212 GB, free: 4.832 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.0001158/0.3749, allocations: 121.8 kB / 1.212 GB, free: 4.703 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.924e-05/0.3749, allocations: 11.84 kB / 1.212 GB, free: 4.691 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.463e-05/0.375, allocations: 12.72 kB / 1.212 GB, free: 4.676 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.375, allocations: 8 kB / 1.212 GB, free: 4.668 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.375, allocations: 0 / 1.212 GB, free: 4.668 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.241e-06/0.375, allocations: 3.984 kB / 1.212 GB, free: 4.664 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002521/0.3753, allocations: 205.5 kB / 1.213 GB, free: 4.414 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.3753, allocations: 4 kB / 1.213 GB, free: 4.41 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.057e-05/0.3754, allocations: 15.92 kB / 1.213 GB, free: 4.395 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.891e-06/0.3754, allocations: 0 / 1.213 GB, free: 4.395 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.25e-05/0.3754, allocations: 7.938 kB / 1.213 GB, free: 4.387 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.3754, allocations: 0 / 1.213 GB, free: 4.387 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3754, allocations: 3.938 kB / 1.213 GB, free: 4.383 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002858/0.3757, allocations: 195.4 kB / 1.213 GB, free: 4.176 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.663e-05/0.3758, allocations: 96.84 kB / 1.213 GB, free: 4.062 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.645e-05/0.3758, allocations: 0 / 1.213 GB, free: 4.062 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001194/0.376, allocations: 12 kB / 1.213 GB, free: 4.051 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.678e-05/0.376, allocations: 11.97 kB / 1.213 GB, free: 4.039 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.676e-06/0.3761, allocations: 4 kB / 1.213 GB, free: 4.035 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001016/0.3762, allocations: 120.6 kB / 1.213 GB, free: 3.918 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1e-07/0.3762, allocations: 0 / 1.213 GB, free: 3.918 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002737/0.3764, allocations: 20 kB / 1.213 GB, free: 3.898 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.0006443/0.3771, allocations: 0.7357 MB / 1.214 GB, free: 3.137 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002668/0.3774, allocations: 67.95 kB / 1.214 GB, free: 3.07 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.3774, allocations: 288 / 1.214 GB, free: 3.07 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 9.733e-05/0.3775, allocations: 39.92 kB / 1.214 GB, free: 3.031 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003825/0.3779, allocations: 17.44 kB / 1.214 GB, free: 3.016 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002235/0.3801, allocations: 1.656 MB / 1.215 GB, free: 1.281 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003405/0.3805, allocations: 0.7002 MB / 1.216 GB, free: 0.5547 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 8.031e-05/0.3806, allocations: 12.66 kB / 1.216 GB, free: 0.543 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.389e-05/0.3807, allocations: 39.42 kB / 1.216 GB, free: 0.5039 MB / 0.9669 GB Notification: Performance of SimCode: time 1.502e-06/0.3807, allocations: 0 / 1.216 GB, free: 0.5039 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02469/0.4054, allocations: 2.706 MB / 1.219 GB, free: 13.94 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.191/8.596, allocations: 8.625 kB / 1.219 GB, free: 13.93 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 & /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