Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00124/0.00124, allocations: 108.2 kB / 17.54 MB, free: 4.746 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001393/0.001393, allocations: 186.7 kB / 20.71 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.272/1.272, allocations: 225.6 MB / 249.3 MB, free: 3.176 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.453/2.453, allocations: 476.7 MB / 0.7628 GB, free: 15.15 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff,fileNamePrefix="Buildings_11_Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001777/0.001777, allocations: 63.89 kB / 1.107 GB, free: 5.191 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7308/0.7326, allocations: 168.7 MB / 1.271 GB, free: 7.727 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff): time 0.001822/0.7344, allocations: 0.9441 MB / 1.272 GB, free: 7.133 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0008209/0.7352, allocations: 0.8919 MB / 1.273 GB, free: 6.461 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.622e-05/0.7353, allocations: 1.438 kB / 1.273 GB, free: 6.461 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.341e-05/0.7353, allocations: 10.78 kB / 1.273 GB, free: 6.453 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 8.018e-05/0.7354, allocations: 19.14 kB / 1.273 GB, free: 6.438 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001671/0.7356, allocations: 45.98 kB / 1.273 GB, free: 6.41 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001352/0.7357, allocations: 125.7 kB / 1.273 GB, free: 6.348 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001292/0.7358, allocations: 39.2 kB / 1.273 GB, free: 6.32 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001035/0.7359, allocations: 60.02 kB / 1.273 GB, free: 6.285 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 9.29e-05/0.736, allocations: 57.34 kB / 1.274 GB, free: 6.254 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.82e-05/0.7361, allocations: 12.41 kB / 1.274 GB, free: 6.254 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.273e-05/0.7361, allocations: 12.56 kB / 1.274 GB, free: 6.254 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.783e-05/0.7361, allocations: 24.94 kB / 1.274 GB, free: 6.238 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 4.791e-05/0.7362, allocations: 57.45 kB / 1.274 GB, free: 6.199 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001594/0.7363, allocations: 159.2 kB / 1.274 GB, free: 6.133 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.7363, allocations: 0 / 1.274 GB, free: 6.133 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.363e-06/0.7363, allocations: 0.9375 kB / 1.274 GB, free: 6.133 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.859e-06/0.7363, allocations: 0 / 1.274 GB, free: 6.133 MB / 0.9981 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.0004698/0.7368, allocations: 433 kB / 1.274 GB, free: 5.727 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.264e-05/0.7368, allocations: 9.938 kB / 1.274 GB, free: 5.727 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.169e-05/0.7369, allocations: 46.7 kB / 1.274 GB, free: 5.676 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.528e-05/0.7369, allocations: 17.28 kB / 1.274 GB, free: 5.668 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001968/0.7371, allocations: 213.5 kB / 1.274 GB, free: 5.449 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.328e-05/0.7371, allocations: 7.875 kB / 1.274 GB, free: 5.445 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.871e-05/0.7371, allocations: 18.72 kB / 1.274 GB, free: 5.434 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000197/0.7373, allocations: 105.1 kB / 1.275 GB, free: 5.379 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.824e-06/0.7373, allocations: 0 / 1.275 GB, free: 5.379 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.24e-05/0.7373, allocations: 5 kB / 1.275 GB, free: 5.375 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.7373, allocations: 2 kB / 1.275 GB, free: 5.375 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000173/0.7375, allocations: 63.95 kB / 1.275 GB, free: 5.359 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004512/0.738, allocations: 409.2 kB / 1.275 GB, free: 5.016 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002341/0.7382, allocations: 73.45 kB / 1.275 GB, free: 4.977 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.877e-05/0.7383, allocations: 36.7 kB / 1.275 GB, free: 4.961 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.687e-05/0.7383, allocations: 4.656 kB / 1.275 GB, free: 4.957 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.155e-05/0.7383, allocations: 41.91 kB / 1.275 GB, free: 4.91 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 1.072e-06/0.7383, allocations: 0 / 1.275 GB, free: 4.91 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0003249/0.7386, allocations: 117.1 kB / 1.275 GB, free: 4.855 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.095e-05/0.7387, allocations: 57.19 kB / 1.275 GB, free: 4.789 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001025/0.7388, allocations: 160.8 kB / 1.276 GB, free: 4.664 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.376e-05/0.7388, allocations: 32.08 kB / 1.276 GB, free: 4.629 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 4.083e-05/0.7388, allocations: 118.4 kB / 1.276 GB, free: 4.52 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.858e-05/0.7388, allocations: 18.83 kB / 1.276 GB, free: 4.508 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.106e-05/0.7389, allocations: 21.45 kB / 1.276 GB, free: 4.488 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.01e-05/0.7389, allocations: 322.3 kB / 1.276 GB, free: 4.172 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.879e-05/0.739, allocations: 36.52 kB / 1.276 GB, free: 4.156 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.24e-05/0.7391, allocations: 49.67 kB / 1.276 GB, free: 4.125 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001395/0.7392, allocations: 67.19 kB / 1.276 GB, free: 4.094 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.7392, allocations: 0 / 1.276 GB, free: 4.094 MB / 0.9981 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001997/0.7394, allocations: 113 kB / 1.276 GB, free: 4.031 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/0.7395, allocations: 5.281 kB / 1.276 GB, free: 4.031 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.7395, allocations: 0 / 1.276 GB, free: 4.031 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.7395, allocations: 5.516 kB / 1.276 GB, free: 4.027 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.65e-05/0.7396, allocations: 15.55 kB / 1.276 GB, free: 4.023 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.509e-06/0.7396, allocations: 0.8125 kB / 1.276 GB, free: 4.023 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.634e-05/0.7397, allocations: 17.53 kB / 1.276 GB, free: 4.016 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.506e-06/0.7397, allocations: 2.469 kB / 1.276 GB, free: 4.016 MB / 0.9981 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 6.013e-05/0.7397, allocations: 128.8 kB / 1.276 GB, free: 3.891 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.226e-05/0.7398, allocations: 16.28 kB / 1.276 GB, free: 3.879 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.02e-05/0.7398, allocations: 19.55 kB / 1.276 GB, free: 3.863 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.7398, allocations: 0.9375 kB / 1.276 GB, free: 3.863 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.7398, allocations: 0 / 1.276 GB, free: 3.863 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.943e-06/0.7398, allocations: 9 kB / 1.276 GB, free: 3.855 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001471/0.7399, allocations: 208.1 kB / 1.277 GB, free: 3.645 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.7399, allocations: 0 / 1.277 GB, free: 3.645 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.261e-05/0.74, allocations: 15.03 kB / 1.277 GB, free: 3.641 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.74, allocations: 1.453 kB / 1.277 GB, free: 3.641 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.628e-06/0.74, allocations: 1.5 kB / 1.277 GB, free: 3.641 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.74, allocations: 0 / 1.277 GB, free: 3.641 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.74, allocations: 1.359 kB / 1.277 GB, free: 3.641 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002022/0.7402, allocations: 200.2 kB / 1.277 GB, free: 3.48 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.259e-05/0.7403, allocations: 96.58 kB / 1.277 GB, free: 3.371 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.093e-05/0.7403, allocations: 2.156 kB / 1.277 GB, free: 3.371 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001081/0.7404, allocations: 8 kB / 1.277 GB, free: 3.371 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.823e-05/0.7404, allocations: 21.58 kB / 1.277 GB, free: 3.363 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.061e-06/0.7404, allocations: 2.125 kB / 1.277 GB, free: 3.363 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 6.227e-05/0.7405, allocations: 119.8 kB / 1.277 GB, free: 3.273 MB / 0.9981 GB Notification: Performance of sort global known variables: time 9e-08/0.7405, allocations: 0 / 1.277 GB, free: 3.273 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002198/0.7407, allocations: 26.62 kB / 1.277 GB, free: 3.262 MB / 0.9981 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.0003563/0.7411, allocations: 0.7355 MB / 1.278 GB, free: 2.574 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002197/0.7413, allocations: 75.69 kB / 1.278 GB, free: 2.551 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.7413, allocations: 0.75 kB / 1.278 GB, free: 2.551 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 8.654e-05/0.7414, allocations: 38.14 kB / 1.278 GB, free: 2.539 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002632/0.7416, allocations: 10.19 kB / 1.278 GB, free: 2.535 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001439/0.7431, allocations: 1.658 MB / 1.28 GB, free: 17.18 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002939/0.7434, allocations: 0.7084 MB / 1.28 GB, free: 16.47 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 5.37e-05/0.7434, allocations: 7.469 kB / 1.28 GB, free: 16.47 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.311e-05/0.7435, allocations: 35.03 kB / 1.28 GB, free: 16.45 MB / 1.014 GB Notification: Performance of SimCode: time 3.61e-07/0.7435, allocations: 0 / 1.28 GB, free: 16.45 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02468/0.7682, allocations: 2.648 MB / 1.283 GB, free: 15.98 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.022/7.791, allocations: 16.14 kB / 1.283 GB, free: 15.98 MB / 1.014 GB " [Timeout remaining time 292] (rm -f Buildings_11_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe ; mkfifo Buildings_11_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe ; head -c 1048576 < Buildings_11_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe >> ../files/Buildings_11_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff_res.mat --tempDir=temp_Buildings_11_Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff_fmu --startTime=0 --stopTime=3600 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff.fmu > Buildings_11_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] "" 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 [Calling sys.exit(0), Time elapsed: 12.98424981899916]