Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001338/0.001338, allocations: 108.2 kB / 17.54 MB, free: 4.766 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.001428/0.001428, allocations: 182.7 kB / 20.71 MB, free: 1.609 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.281/1.281, allocations: 225.6 MB / 249.3 MB, free: 3.32 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.482/2.482, allocations: 476.7 MB / 0.7628 GB, free: 15.21 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.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_11_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_11_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001762/0.001762, allocations: 71.89 kB / 1.107 GB, free: 5.219 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7274/0.7291, allocations: 168.7 MB / 1.271 GB, free: 7.734 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003002/0.7321, allocations: 2.382 MB / 1.274 GB, free: 6.148 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0009648/0.7331, allocations: 0.8035 MB / 1.274 GB, free: 5.605 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.33e-05/0.7332, allocations: 2.406 kB / 1.274 GB, free: 5.605 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0004677/0.7336, allocations: 159.1 kB / 1.275 GB, free: 5.508 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001446/0.7338, allocations: 67.17 kB / 1.275 GB, free: 5.469 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001211/0.7339, allocations: 51.33 kB / 1.275 GB, free: 5.441 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001874/0.7341, allocations: 159.7 kB / 1.275 GB, free: 5.367 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001743/0.7343, allocations: 73.56 kB / 1.275 GB, free: 5.332 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 9.693e-05/0.7344, allocations: 70.67 kB / 1.275 GB, free: 5.297 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001363/0.7345, allocations: 71.22 kB / 1.275 GB, free: 5.266 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.472e-05/0.7345, allocations: 12.12 kB / 1.275 GB, free: 5.266 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001125/0.7346, allocations: 54 kB / 1.275 GB, free: 5.25 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 4.889e-05/0.7347, allocations: 36.17 kB / 1.275 GB, free: 5.234 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 6.452e-05/0.7348, allocations: 68.36 kB / 1.275 GB, free: 5.191 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002086/0.735, allocations: 177.7 kB / 1.275 GB, free: 5.121 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.735, allocations: 0.8438 kB / 1.275 GB, free: 5.121 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.232e-06/0.735, allocations: 0 / 1.275 GB, free: 5.121 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.859e-06/0.735, allocations: 0 / 1.275 GB, free: 5.121 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0005016/0.7355, allocations: 0.4936 MB / 1.276 GB, free: 4.633 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.195e-05/0.7355, allocations: 9.875 kB / 1.276 GB, free: 4.633 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.927e-05/0.7355, allocations: 39.92 kB / 1.276 GB, free: 4.59 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001747/0.7357, allocations: 33.97 kB / 1.276 GB, free: 4.574 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001607/0.7359, allocations: 214.7 kB / 1.276 GB, free: 4.352 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.905e-05/0.7359, allocations: 40.95 kB / 1.276 GB, free: 4.312 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.048e-05/0.7359, allocations: 15.69 kB / 1.276 GB, free: 4.305 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002414/0.7362, allocations: 143.6 kB / 1.276 GB, free: 4.219 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.7362, allocations: 0 / 1.276 GB, free: 4.219 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.509e-05/0.7362, allocations: 5.953 kB / 1.276 GB, free: 4.215 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.582e-05/0.7362, allocations: 4.188 kB / 1.276 GB, free: 4.215 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001762/0.7364, allocations: 92.66 kB / 1.276 GB, free: 4.184 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006056/0.737, allocations: 0.637 MB / 1.277 GB, free: 3.625 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001953/0.7372, allocations: 57.72 kB / 1.277 GB, free: 3.586 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.579e-05/0.7373, allocations: 23.27 kB / 1.277 GB, free: 3.574 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.345e-05/0.7373, allocations: 0.5625 kB / 1.277 GB, free: 3.574 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001492/0.7374, allocations: 150.6 kB / 1.277 GB, free: 3.445 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.7374, allocations: 0 / 1.277 GB, free: 3.445 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0003211/0.7378, allocations: 162.3 kB / 1.277 GB, free: 3.348 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.34e-05/0.7378, allocations: 136.3 kB / 1.278 GB, free: 3.188 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001187/0.7379, allocations: 183.5 kB / 1.278 GB, free: 3.059 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.057e-05/0.7379, allocations: 26.77 kB / 1.278 GB, free: 3.027 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 4.785e-05/0.738, allocations: 143.7 kB / 1.278 GB, free: 2.895 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.763e-05/0.738, allocations: 20.33 kB / 1.278 GB, free: 2.883 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.989e-05/0.738, allocations: 39.67 kB / 1.278 GB, free: 2.852 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.792e-05/0.7381, allocations: 328.1 kB / 1.278 GB, free: 2.531 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.348e-05/0.7382, allocations: 40.59 kB / 1.278 GB, free: 2.516 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.603e-05/0.7382, allocations: 103.6 kB / 1.278 GB, free: 2.418 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001768/0.7384, allocations: 235.6 kB / 1.279 GB, free: 2.191 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.7384, allocations: 1.344 kB / 1.279 GB, free: 2.191 MB / 0.9981 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002932/0.7387, allocations: 248.2 kB / 1.279 GB, free: 2.031 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.823e-05/0.7387, allocations: 70.86 kB / 1.279 GB, free: 1.961 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.7388, allocations: 10.69 kB / 1.279 GB, free: 1.953 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.7388, allocations: 3.375 kB / 1.279 GB, free: 1.953 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001074/0.7389, allocations: 30.86 kB / 1.279 GB, free: 1.949 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.244e-06/0.7389, allocations: 3.781 kB / 1.279 GB, free: 1.949 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001242/0.739, allocations: 27.17 kB / 1.279 GB, free: 1.938 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.431e-05/0.739, allocations: 7.844 kB / 1.279 GB, free: 1.938 MB / 0.9981 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 7.985e-05/0.7391, allocations: 169.3 kB / 1.279 GB, free: 1.773 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.236e-05/0.7391, allocations: 25.3 kB / 1.279 GB, free: 1.758 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.388e-05/0.7391, allocations: 15.2 kB / 1.279 GB, free: 1.742 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.7391, allocations: 0.9062 kB / 1.279 GB, free: 1.742 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.7392, allocations: 0 / 1.279 GB, free: 1.742 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.7392, allocations: 0.9062 kB / 1.279 GB, free: 1.742 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001109/0.7393, allocations: 208.4 kB / 1.279 GB, free: 1.535 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.7393, allocations: 0.7031 kB / 1.279 GB, free: 1.535 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.364e-05/0.7393, allocations: 15 kB / 1.279 GB, free: 1.531 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.7393, allocations: 4.812 kB / 1.279 GB, free: 1.527 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.145e-05/0.7394, allocations: 1.875 kB / 1.279 GB, free: 1.527 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.7394, allocations: 4.875 kB / 1.279 GB, free: 1.523 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.7394, allocations: 5.219 kB / 1.279 GB, free: 1.52 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003136/0.7397, allocations: 215.1 kB / 1.28 GB, free: 1.375 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.44e-05/0.7397, allocations: 86.28 kB / 1.28 GB, free: 1.277 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.481e-05/0.7397, allocations: 6.531 kB / 1.28 GB, free: 1.273 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.86e-05/0.7398, allocations: 9.562 kB / 1.28 GB, free: 1.273 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.899e-05/0.7399, allocations: 16.12 kB / 1.28 GB, free: 1.266 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.865e-06/0.7399, allocations: 2.656 kB / 1.28 GB, free: 1.266 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 7.794e-05/0.7399, allocations: 130.1 kB / 1.28 GB, free: 1.176 MB / 0.9981 GB Notification: Performance of sort global known variables: time 6e-08/0.7399, allocations: 0 / 1.28 GB, free: 1.176 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002315/0.7402, allocations: 34.73 kB / 1.28 GB, free: 1.168 MB / 0.9981 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.0004249/0.7406, allocations: 0.758 MB / 1.281 GB, free: 500 kB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002477/0.7408, allocations: 207.3 kB / 1.281 GB, free: 340 kB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.482e-06/0.7409, allocations: 0 / 1.281 GB, free: 340 kB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 9.108e-05/0.7409, allocations: 90.47 kB / 1.281 GB, free: 264 kB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002046/0.7411, allocations: 20.06 kB / 1.281 GB, free: 256 kB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00207/0.7432, allocations: 1.97 MB / 1.283 GB, free: 14.64 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002872/0.7435, allocations: 0.707 MB / 1.284 GB, free: 13.95 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 6.291e-05/0.7436, allocations: 21.36 kB / 1.284 GB, free: 13.94 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.529e-05/0.7436, allocations: 41.55 kB / 1.284 GB, free: 13.91 MB / 1.014 GB Notification: Performance of SimCode: time 3.31e-07/0.7436, allocations: 0 / 1.284 GB, free: 13.91 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02482/0.7685, allocations: 3.156 MB / 1.287 GB, free: 13.38 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.004/7.772, allocations: 6.125 kB / 1.287 GB, free: 13.38 MB / 1.014 GB " [Timeout remaining time 292] (rm -f Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat --tempDir=temp_Buildings_11_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL_fmu --startTime=0 --stopTime=10 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] "" Variables in the reference:time,voltageControl.V_nominal,sou.V_in,Vtr_high.y,voltageControl.y Variables in the result:Vtr_high.k,Vtr_high.y,cosine.amplitude,cosine.f,cosine.offset,cosine.phase,cosine.startTime,cosine.y,der(voltageControl.y),ground.p.i,ground.p.v,sou.S[1],sou.S[2],sou.V,sou.V_in,sou.definiteReference,sou.n.i,sou.n.v,sou.phi,sou.potentialReference,sou.terminal.i[1],sou.terminal.i[2],sou.terminal.v[1],sou.terminal.v[2],sou.use_V_in,time,voltageControl.T,voltageControl.V_nominal,voltageControl.Vmax,voltageControl.Vmin,voltageControl.ctrl.V,voltageControl.ctrl.V_nominal,voltageControl.ctrl.tDelay,voltageControl.ctrl.vThresh,voltageControl.ctrl.y,voltageControl.tDelay,voltageControl.terminal.i[1],voltageControl.terminal.i[2],voltageControl.terminal.v[1],voltageControl.terminal.v[2],voltageControl.vThresh,voltageControl.y,voltageControl.y_start [Calling sys.exit(0), Time elapsed: 13.000789808000263]