Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff.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.EquipmentOnOff,fileNamePrefix="Buildings_latest_Buildings_Examples_Tutorial_CDL_Controls_Validation_EquipmentOnOff",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff,fileNamePrefix="Buildings_latest_Buildings_Examples_Tutorial_CDL_Controls_Validation_EquipmentOnOff",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.001334/0.001333, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001418/0.001418, allocations: 192 kB / 16.53 MB, free: 6.391 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.309/1.309, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.655/2.655, allocations: 461.9 MB / 0.7346 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001333, allocations: 65.89 kB / 0.8992 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2637/0.2651, allocations: 157.4 MB / 1.053 GB, free: 8.238 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff): time 0.002208/0.2673, allocations: 0.8137 MB / 1.054 GB, free: 7.426 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001581/0.2689, allocations: 1.166 MB / 1.055 GB, free: 6.246 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.122e-05/0.269, allocations: 3.938 kB / 1.055 GB, free: 6.242 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.53e-05/0.2691, allocations: 3.938 kB / 1.055 GB, free: 6.238 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.047e-05/0.2692, allocations: 11.86 kB / 1.055 GB, free: 6.227 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005504/0.2697, allocations: 146.7 kB / 1.055 GB, free: 6.086 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002085/0.27, allocations: 139.8 kB / 1.055 GB, free: 5.949 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001311/0.2701, allocations: 35.97 kB / 1.055 GB, free: 5.914 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000113/0.2702, allocations: 63.77 kB / 1.055 GB, free: 5.852 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001003/0.2703, allocations: 47.83 kB / 1.055 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.787e-05/0.2704, allocations: 16 kB / 1.055 GB, free: 5.789 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.323e-05/0.2705, allocations: 31.97 kB / 1.055 GB, free: 5.758 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.962e-05/0.2705, allocations: 19.92 kB / 1.055 GB, free: 5.738 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.074e-05/0.2706, allocations: 47.84 kB / 1.055 GB, free: 5.691 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000211/0.2708, allocations: 159.8 kB / 1.056 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.2708, allocations: 0 / 1.056 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.202e-06/0.2708, allocations: 0 / 1.056 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.522e-06/0.2708, allocations: 0 / 1.056 GB, free: 5.535 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006357/0.2715, allocations: 433 kB / 1.056 GB, free: 5.055 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.2715, allocations: 12.62 kB / 1.056 GB, free: 5.043 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.001e-05/0.2716, allocations: 38.73 kB / 1.056 GB, free: 4.996 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.14e-05/0.2716, allocations: 12.84 kB / 1.056 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001191/0.2717, allocations: 180.1 kB / 1.056 GB, free: 4.77 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.402e-05/0.2718, allocations: 12.38 kB / 1.056 GB, free: 4.758 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.618e-05/0.2718, allocations: 8.375 kB / 1.056 GB, free: 4.75 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002165/0.272, allocations: 86.7 kB / 1.056 GB, free: 4.66 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.739e-05/0.272, allocations: 7.922 kB / 1.056 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.047e-05/0.2721, allocations: 0 / 1.056 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.2721, allocations: 0 / 1.056 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002078/0.2723, allocations: 55.95 kB / 1.056 GB, free: 4.598 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005596/0.2728, allocations: 388.5 kB / 1.057 GB, free: 4.168 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001599/0.273, allocations: 50.55 kB / 1.057 GB, free: 4.109 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001085/0.2731, allocations: 32.94 kB / 1.057 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 8.886e-06/0.2732, allocations: 3.938 kB / 1.057 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002299/0.2734, allocations: 79.36 kB / 1.057 GB, free: 3.98 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 1.894e-06/0.2734, allocations: 0 / 1.057 GB, free: 3.98 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0004664/0.2739, allocations: 133.5 kB / 1.057 GB, free: 3.844 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.923e-05/0.2739, allocations: 51.41 kB / 1.057 GB, free: 3.781 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001067/0.274, allocations: 133.7 kB / 1.057 GB, free: 3.641 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.001e-05/0.2741, allocations: 29.7 kB / 1.057 GB, free: 3.605 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.796e-05/0.2741, allocations: 111.9 kB / 1.057 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.659e-05/0.2742, allocations: 3.906 kB / 1.057 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.404e-05/0.2743, allocations: 41.64 kB / 1.057 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001075/0.2744, allocations: 322.8 kB / 1.058 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001618/0.2745, allocations: 51.97 kB / 1.058 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001817/0.2747, allocations: 79.64 kB / 1.058 GB, free: 2.977 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002493/0.275, allocations: 116.2 kB / 1.058 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.275, allocations: 4 kB / 1.058 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004162/0.2754, allocations: 195.2 kB / 1.058 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.67e-05/0.2755, allocations: 33.7 kB / 1.058 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.2755, allocations: 4 kB / 1.058 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/0.2755, allocations: 0 / 1.058 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.607e-05/0.2756, allocations: 7.984 kB / 1.058 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.2756, allocations: 7.938 kB / 1.058 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002452/0.2758, allocations: 40 kB / 1.058 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.036e-05/0.2759, allocations: 12 kB / 1.058 GB, free: 2.531 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,onSys.y,$PRE.onSys.y,conEquSta.hys.y,$PRE.conEquSta.hys.y,conEquSta.onBoi) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 1 * 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 9.129e-05/0.276, allocations: 123.3 kB / 1.058 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.608e-05/0.276, allocations: 3.906 kB / 1.058 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.129e-05/0.276, allocations: 12.38 kB / 1.058 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.276, allocations: 7.922 kB / 1.058 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.276, allocations: 7.938 kB / 1.058 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.2761, allocations: 0 / 1.058 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001509/0.2762, allocations: 185.6 kB / 1.059 GB, free: 2.141 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.2762, allocations: 0 / 1.059 GB, free: 2.141 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.469e-05/0.2763, allocations: 15.98 kB / 1.059 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.2763, allocations: 0 / 1.059 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.035e-06/0.2763, allocations: 0 / 1.059 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.2763, allocations: 0 / 1.059 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.2763, allocations: 3.938 kB / 1.059 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002727/0.2766, allocations: 129 kB / 1.059 GB, free: 1.977 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.589e-05/0.2766, allocations: 81.02 kB / 1.059 GB, free: 1.879 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.962e-05/0.2767, allocations: 3.984 kB / 1.059 GB, free: 1.875 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.935e-05/0.2767, allocations: 11.98 kB / 1.059 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.93e-05/0.2768, allocations: 15.92 kB / 1.059 GB, free: 1.848 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.05e-05/0.2768, allocations: 7.938 kB / 1.059 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.063e-05/0.2769, allocations: 99.2 kB / 1.059 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2769, allocations: 0 / 1.059 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002222/0.2771, allocations: 24 kB / 1.059 GB, free: 1.719 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$whenCondition2,conEquSta.onBoi,conEquSta.hys.y,onSys.y) * Number of discrete states: 1 (conEquSta.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0005604/0.2777, allocations: 0.6673 MB / 1.06 GB, free: 1.023 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003761/0.2781, allocations: 179.3 kB / 1.06 GB, free: 0.8359 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.2781, allocations: 0 / 1.06 GB, free: 0.8359 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001262/0.2782, allocations: 35.91 kB / 1.06 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001935/0.2784, allocations: 15.94 kB / 1.06 GB, free: 0.7852 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001911/0.2803, allocations: 1.595 MB / 1.061 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002338/0.2806, allocations: 0.6924 MB / 1.062 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.239e-05/0.2806, allocations: 4 kB / 1.062 GB, free: 14.37 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.07e-05/0.2807, allocations: 27.42 kB / 1.062 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of SimCode: time 2.7e-07/0.2807, allocations: 3.938 kB / 1.062 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01835/0.299, allocations: 2.774 MB / 1.065 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.409/7.708, allocations: 5.938 kB / 1.065 GB, free: 11.7 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff.pipe ; mkfifo Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff.pipe >> ../files/Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_Tutorial_CDL_Controls_Validation_EquipmentOnOff_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Examples_Tutorial_CDL_Controls_Validation_EquipmentOnOff.fmu > Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_Tutorial_CDL_Controls_Validation_EquipmentOnOff.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches