Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff,fileNamePrefix="Buildings_9_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.001695/0.001695, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002019/0.002018, allocations: 194 kB / 16.25 MB, free: 6.633 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.299/1.299, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.199/2.199, allocations: 390.2 MB / 0.6644 GB, free: 0.543 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 59.91 kB / 0.8122 GB, free: 14.65 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5114/0.5126, allocations: 140.4 MB / 0.9492 GB, free: 9.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff): time 0.002068/0.5147, allocations: 0.9203 MB / 0.9501 GB, free: 8.441 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007905/0.5155, allocations: 0.8724 MB / 0.951 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.621e-05/0.5156, allocations: 5.281 kB / 0.951 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.577e-05/0.5156, allocations: 3.938 kB / 0.951 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.49e-05/0.5157, allocations: 22.69 kB / 0.951 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001481/0.5159, allocations: 24.11 kB / 0.9511 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001028/0.516, allocations: 109.7 kB / 0.9512 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001147/0.5161, allocations: 46.59 kB / 0.9512 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001002/0.5162, allocations: 48.81 kB / 0.9512 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.207e-05/0.5163, allocations: 55.38 kB / 0.9513 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.286e-05/0.5163, allocations: 10.94 kB / 0.9513 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.838e-05/0.5163, allocations: 11.03 kB / 0.9513 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.182e-05/0.5164, allocations: 22.58 kB / 0.9513 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.38e-05/0.5164, allocations: 44.95 kB / 0.9514 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001176/0.5165, allocations: 126 kB / 0.9515 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.5166, allocations: 4 kB / 0.9515 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.363e-06/0.5166, allocations: 0 / 0.9515 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.901e-06/0.5166, allocations: 1.812 kB / 0.9515 GB, free: 7.352 MB / 0.7169 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.0007341/0.5173, allocations: 466 kB / 0.952 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.5174, allocations: 9.5 kB / 0.952 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.835e-05/0.5174, allocations: 41.11 kB / 0.952 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.249e-05/0.5174, allocations: 10.28 kB / 0.952 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.844e-05/0.5175, allocations: 191.2 kB / 0.9522 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.969e-06/0.5175, allocations: 8.156 kB / 0.9522 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.797e-05/0.5176, allocations: 8.344 kB / 0.9522 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001897/0.5178, allocations: 91.89 kB / 0.9523 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.375e-06/0.5178, allocations: 7.922 kB / 0.9523 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.259e-05/0.5178, allocations: 0.7188 kB / 0.9523 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.5178, allocations: 2.219 kB / 0.9523 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001613/0.518, allocations: 66.73 kB / 0.9524 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006031/0.5186, allocations: 412.5 kB / 0.9528 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001299/0.5187, allocations: 58.84 kB / 0.9528 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.493e-05/0.5188, allocations: 31.44 kB / 0.9529 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.692e-05/0.5188, allocations: 5.219 kB / 0.9529 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.254e-05/0.5188, allocations: 31.84 kB / 0.9529 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.703e-06/0.5189, allocations: 4 kB / 0.9529 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.000322/0.5192, allocations: 111.3 kB / 0.953 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.105e-05/0.5192, allocations: 60.41 kB / 0.9531 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.904e-05/0.5193, allocations: 152.9 kB / 0.9532 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.339e-05/0.5193, allocations: 27.17 kB / 0.9532 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.939e-05/0.5194, allocations: 104.9 kB / 0.9533 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.818e-05/0.5194, allocations: 18.17 kB / 0.9533 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.072e-05/0.5194, allocations: 27.08 kB / 0.9534 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.329e-05/0.5195, allocations: 317.4 kB / 0.9537 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.343e-05/0.5196, allocations: 35.06 kB / 0.9537 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.086e-05/0.5197, allocations: 31.72 kB / 0.9537 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000122/0.5198, allocations: 49.39 kB / 0.9538 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.5198, allocations: 0 / 0.9538 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001872/0.52, allocations: 101.3 kB / 0.9539 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.52, allocations: 8.812 kB / 0.9539 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.52, allocations: 3.938 kB / 0.9539 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.17e-05/0.52, allocations: 5.75 kB / 0.9539 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.85e-05/0.5201, allocations: 9.828 kB / 0.9539 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.5201, allocations: 3.938 kB / 0.9539 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001602/0.5203, allocations: 27.38 kB / 0.9539 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.508e-06/0.5203, allocations: 1.219 kB / 0.9539 GB, free: 5.105 MB / 0.7169 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 6.29e-05/0.5204, allocations: 118.8 kB / 0.9541 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.078e-05/0.5204, allocations: 12.08 kB / 0.9541 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.917e-05/0.5205, allocations: 10.84 kB / 0.9541 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.5205, allocations: 1.719 kB / 0.9541 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.5205, allocations: 3.938 kB / 0.9541 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.444e-06/0.5205, allocations: 0 / 0.9541 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001407/0.5206, allocations: 204.6 kB / 0.9543 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.5206, allocations: 0 / 0.9543 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.934e-05/0.5207, allocations: 9.172 kB / 0.9543 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.5207, allocations: 1.438 kB / 0.9543 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.338e-06/0.5207, allocations: 0 / 0.9543 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.5207, allocations: 1.094 kB / 0.9543 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.5207, allocations: 7.875 kB / 0.9543 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001935/0.5209, allocations: 189.7 kB / 0.9545 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.436e-05/0.521, allocations: 88.23 kB / 0.9546 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.245e-05/0.521, allocations: 1.156 kB / 0.9546 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001835/0.5212, allocations: 20.97 kB / 0.9546 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.826e-05/0.5213, allocations: 26.39 kB / 0.9546 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.324e-06/0.5213, allocations: 5.031 kB / 0.9546 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.989e-05/0.5213, allocations: 121.4 kB / 0.9547 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5213, allocations: 0 / 0.9547 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002275/0.5216, allocations: 16.31 kB / 0.9547 GB, free: 4.324 MB / 0.7169 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.0003464/0.5219, allocations: 0.7189 MB / 0.9554 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001943/0.5221, allocations: 60.5 kB / 0.9555 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.5221, allocations: 1.188 kB / 0.9555 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.469e-05/0.5222, allocations: 39.31 kB / 0.9555 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002864/0.5225, allocations: 16.33 kB / 0.9556 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001286/0.5238, allocations: 1.614 MB / 0.9571 GB, free: 2.152 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.637e-05/0.5239, allocations: 0.6984 MB / 0.9578 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.555e-05/0.524, allocations: 16.02 kB / 0.9578 GB, free: 1.434 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.143e-05/0.524, allocations: 30.2 kB / 0.9579 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.5241, allocations: 1.406 kB / 0.9579 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2788/0.8028, allocations: 2.452 MB / 0.9603 GB, free: 220 kB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002026/0.8031, allocations: 213.5 kB / 0.9605 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.665/2.468, allocations: 6.25 kB / 0.9605 GB, free: 15.96 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe ; mkfifo Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe >> ../files/Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff.fmu > Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches