Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.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.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_latest_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_latest_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",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.001112/0.001112, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001614/0.001614, allocations: 195.9 kB / 16.25 MB, free: 6.629 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.463/1.463, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.595/3.595, allocations: 461.9 MB / 0.7343 GB, free: 15 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002481/0.002481, allocations: 62.28 kB / 0.8987 GB, free: 37.09 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.481/0.4835, allocations: 157.4 MB / 1.052 GB, free: 8.707 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.006262/0.4899, allocations: 2.366 MB / 1.055 GB, free: 6.324 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002066/0.492, allocations: 0.7793 MB / 1.055 GB, free: 5.539 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001389/0.4922, allocations: 0 / 1.055 GB, free: 5.539 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.000849/0.4931, allocations: 139.5 kB / 1.056 GB, free: 5.402 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002886/0.4934, allocations: 59.73 kB / 1.056 GB, free: 5.344 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002783/0.4937, allocations: 47.89 kB / 1.056 GB, free: 5.297 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003317/0.494, allocations: 155.5 kB / 1.056 GB, free: 5.145 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000439/0.4945, allocations: 113.3 kB / 1.056 GB, free: 5.035 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001892/0.4947, allocations: 63.72 kB / 1.056 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002087/0.4949, allocations: 71.73 kB / 1.056 GB, free: 4.902 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.663e-05/0.4949, allocations: 12 kB / 1.056 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001881/0.4951, allocations: 51.91 kB / 1.056 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.13e-05/0.4953, allocations: 47.81 kB / 1.056 GB, free: 4.793 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001244/0.4954, allocations: 63.73 kB / 1.056 GB, free: 4.73 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003796/0.4958, allocations: 171.3 kB / 1.056 GB, free: 4.562 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 9.859e-06/0.4958, allocations: 4 kB / 1.056 GB, free: 4.559 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.863e-06/0.4958, allocations: 0 / 1.056 GB, free: 4.559 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.684e-06/0.4958, allocations: 0 / 1.056 GB, free: 4.559 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001093/0.4969, allocations: 494.5 kB / 1.057 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 6.172e-05/0.497, allocations: 8.625 kB / 1.057 GB, free: 4.008 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.171e-05/0.4971, allocations: 42.73 kB / 1.057 GB, free: 3.957 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003541/0.4975, allocations: 32.67 kB / 1.057 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004089/0.4979, allocations: 221.5 kB / 1.057 GB, free: 3.672 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.887e-05/0.498, allocations: 34.45 kB / 1.057 GB, free: 3.633 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.761e-05/0.4981, allocations: 15.94 kB / 1.057 GB, free: 3.617 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004633/0.4985, allocations: 140.2 kB / 1.057 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.4986, allocations: 0 / 1.057 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.009e-05/0.4986, allocations: 8 kB / 1.057 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.606e-05/0.4986, allocations: 7.938 kB / 1.057 GB, free: 3.449 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003323/0.499, allocations: 87.89 kB / 1.057 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001389/0.5004, allocations: 0.6402 MB / 1.058 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003823/0.5008, allocations: 62.55 kB / 1.058 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001215/0.5009, allocations: 28.86 kB / 1.058 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.619e-05/0.501, allocations: 3.984 kB / 1.058 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003149/0.5013, allocations: 135 kB / 1.058 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 2.375e-06/0.5013, allocations: 0 / 1.058 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0006308/0.502, allocations: 175.1 kB / 1.058 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001211/0.5021, allocations: 132.5 kB / 1.059 GB, free: 2.055 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002798/0.5024, allocations: 178.3 kB / 1.059 GB, free: 1.871 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.638e-05/0.5024, allocations: 33.69 kB / 1.059 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001436/0.5026, allocations: 131.8 kB / 1.059 GB, free: 1.695 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.188e-05/0.5027, allocations: 23.7 kB / 1.059 GB, free: 1.672 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001066/0.5028, allocations: 37.72 kB / 1.059 GB, free: 1.629 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001923/0.503, allocations: 330.8 kB / 1.059 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001512/0.5031, allocations: 35.98 kB / 1.059 GB, free: 1.262 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002309/0.5034, allocations: 107.3 kB / 1.059 GB, free: 1.125 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004308/0.5038, allocations: 230.3 kB / 1.06 GB, free: 0.8477 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.5039, allocations: 0 / 1.06 GB, free: 0.8477 MB / 0.8106 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0006169/0.5045, allocations: 248.8 kB / 1.06 GB, free: 0.5859 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 7.081e-05/0.5046, allocations: 71.41 kB / 1.06 GB, free: 0.5039 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.328e-06/0.5046, allocations: 0 / 1.06 GB, free: 0.5039 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.419e-05/0.5046, allocations: 4 kB / 1.06 GB, free: 0.5 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002029/0.5048, allocations: 27.98 kB / 1.06 GB, free: 484 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.763e-05/0.5049, allocations: 7.938 kB / 1.06 GB, free: 476 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002458/0.5051, allocations: 31.77 kB / 1.06 GB, free: 444 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.746e-05/0.5052, allocations: 15.94 kB / 1.06 GB, free: 428 kB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 (voltageControl.ctrl.tSwitch,$PRE.voltageControl.ctrl.tSwitch,voltageControl.ctrl.connected,$PRE.voltageControl.ctrl.connected,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 2 * 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.0002129/0.5054, allocations: 163.5 kB / 1.06 GB, free: 248 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.886e-05/0.5055, allocations: 19.75 kB / 1.06 GB, free: 228 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.811e-05/0.5055, allocations: 17.39 kB / 1.06 GB, free: 208 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.5055, allocations: 48 / 1.06 GB, free: 208 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.127e-06/0.5056, allocations: 3.984 kB / 1.06 GB, free: 204 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.5056, allocations: 0 / 1.06 GB, free: 204 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003355/0.5059, allocations: 221.5 kB / 1.06 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.5059, allocations: 0 / 1.06 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001236/0.5061, allocations: 8 kB / 1.06 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.941e-06/0.5061, allocations: 3.938 kB / 1.06 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.963e-05/0.5061, allocations: 4 kB / 1.06 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.189e-06/0.5061, allocations: 4 kB / 1.06 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.073e-06/0.5061, allocations: 0 / 1.06 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006425/0.5068, allocations: 210.6 kB / 1.061 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.214e-05/0.5069, allocations: 89.03 kB / 1.061 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.092e-05/0.507, allocations: 3.938 kB / 1.061 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000167/0.5071, allocations: 16.05 kB / 1.061 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.932e-05/0.5072, allocations: 8 kB / 1.061 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.613e-05/0.5073, allocations: 4 kB / 1.061 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001913/0.5075, allocations: 136.8 kB / 1.061 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.655e-06/0.5075, allocations: 0 / 1.061 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0005164/0.508, allocations: 35.94 kB / 1.061 GB, free: 15.38 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageControl.y) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch) * Number of discrete states: 4 ($whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.001068/0.5091, allocations: 0.7587 MB / 1.062 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005617/0.5097, allocations: 222.6 kB / 1.062 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.5097, allocations: 0 / 1.062 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002275/0.5099, allocations: 103.4 kB / 1.062 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000439/0.5104, allocations: 17.88 kB / 1.062 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003816/0.5142, allocations: 1.999 MB / 1.064 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005186/0.5148, allocations: 0.7158 MB / 1.065 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001747/0.515, allocations: 24.58 kB / 1.065 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001077/0.5151, allocations: 35.42 kB / 1.065 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of SimCode: time 5.81e-07/0.5151, allocations: 0 / 1.065 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03408/0.5492, allocations: 2.895 MB / 1.068 GB, free: 8.496 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004176/0.5497, allocations: 219 kB / 1.068 GB, free: 8.238 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.073/3.622, allocations: 0 / 1.068 GB, free: 8.238 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches