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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001341/0.001341, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00146/0.00146, allocations: 209.3 kB / 22.24 MB, free: 5.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.467/1.467, allocations: 230.6 MB / 256 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.409/3.409, allocations: 0.5107 GB / 0.8158 GB, free: 17.8 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002091/0.002091, allocations: 65.44 kB / 1.186 GB, free: 13.74 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3871/0.3892, allocations: 181.9 MB / 1.363 GB, free: 14.09 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.005008/0.3942, allocations: 2.313 MB / 1.366 GB, free: 11.75 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002047/0.3963, allocations: 0.8183 MB / 1.366 GB, free: 10.93 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002131/0.3965, allocations: 7.938 kB / 1.366 GB, free: 10.92 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.000828/0.3973, allocations: 139.5 kB / 1.367 GB, free: 10.79 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0003218/0.3976, allocations: 75.59 kB / 1.367 GB, free: 10.71 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002676/0.3979, allocations: 55.88 kB / 1.367 GB, free: 10.66 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003539/0.3983, allocations: 163.5 kB / 1.367 GB, free: 10.5 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003135/0.3986, allocations: 89 kB / 1.367 GB, free: 10.41 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002338/0.3988, allocations: 79.69 kB / 1.367 GB, free: 10.33 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002298/0.399, allocations: 63.69 kB / 1.367 GB, free: 10.27 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.485e-05/0.3991, allocations: 12 kB / 1.367 GB, free: 10.25 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001602/0.3992, allocations: 55.88 kB / 1.367 GB, free: 10.2 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 8.1e-05/0.3993, allocations: 35.91 kB / 1.367 GB, free: 10.16 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 9.486e-05/0.3994, allocations: 63.66 kB / 1.367 GB, free: 10.1 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0004502/0.3999, allocations: 179.3 kB / 1.367 GB, free: 9.926 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.3999, allocations: 0 / 1.367 GB, free: 9.926 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.374e-06/0.3999, allocations: 0 / 1.367 GB, free: 9.926 MB / 1.061 GB Notification: Performance of Transformations before backend: time 8.516e-06/0.3999, allocations: 0 / 1.367 GB, free: 9.926 MB / 1.061 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.0009716/0.4008, allocations: 417.3 kB / 1.368 GB, free: 9.477 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/0.4009, allocations: 12.03 kB / 1.368 GB, free: 9.465 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.51e-05/0.4009, allocations: 46.73 kB / 1.368 GB, free: 9.41 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003156/0.4013, allocations: 36.81 kB / 1.368 GB, free: 9.375 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003127/0.4016, allocations: 158.8 kB / 1.368 GB, free: 9.195 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.603e-05/0.4017, allocations: 71.52 kB / 1.368 GB, free: 9.113 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.594e-05/0.4017, allocations: 12 kB / 1.368 GB, free: 9.102 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003502/0.402, allocations: 170.6 kB / 1.368 GB, free: 8.914 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.4021, allocations: 11.92 kB / 1.368 GB, free: 8.902 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.747e-05/0.4021, allocations: 4 kB / 1.368 GB, free: 8.898 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.321e-05/0.4021, allocations: 7.984 kB / 1.368 GB, free: 8.891 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000254/0.4024, allocations: 117.6 kB / 1.368 GB, free: 8.77 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001124/0.4035, allocations: 0.5809 MB / 1.369 GB, free: 8.133 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000299/0.4038, allocations: 92.12 kB / 1.369 GB, free: 8.027 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001033/0.4039, allocations: 54.61 kB / 1.369 GB, free: 7.965 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.448e-05/0.4039, allocations: 192 / 1.369 GB, free: 7.965 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002835/0.4042, allocations: 176.4 kB / 1.369 GB, free: 7.762 MB / 1.061 GB Notification: Performance of pre-optimization done (n=7): time 1.423e-06/0.4042, allocations: 0 / 1.369 GB, free: 7.762 MB / 1.061 GB Notification: Performance of matching and sorting (n=7): time 0.0005133/0.4047, allocations: 226.6 kB / 1.37 GB, free: 7.516 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001068/0.4048, allocations: 132.5 kB / 1.37 GB, free: 7.355 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002139/0.405, allocations: 186.7 kB / 1.37 GB, free: 7.16 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.42e-05/0.405, allocations: 29.69 kB / 1.37 GB, free: 7.125 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001252/0.4052, allocations: 136 kB / 1.37 GB, free: 6.984 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.467e-05/0.4052, allocations: 31.77 kB / 1.37 GB, free: 6.953 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.669e-05/0.4053, allocations: 33.72 kB / 1.37 GB, free: 6.914 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.000165/0.4054, allocations: 330.8 kB / 1.37 GB, free: 6.582 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000138/0.4056, allocations: 91.34 kB / 1.37 GB, free: 6.48 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001993/0.4058, allocations: 166.7 kB / 1.371 GB, free: 6.273 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003129/0.4061, allocations: 238.3 kB / 1.371 GB, free: 5.988 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.4061, allocations: 4 kB / 1.371 GB, free: 5.984 MB / 1.061 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004615/0.4066, allocations: 300.1 kB / 1.371 GB, free: 5.66 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 7.234e-05/0.4066, allocations: 67.39 kB / 1.371 GB, free: 5.582 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.325e-06/0.4066, allocations: 4 kB / 1.371 GB, free: 5.578 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.913e-05/0.4067, allocations: 4 kB / 1.371 GB, free: 5.574 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001309/0.4068, allocations: 28.23 kB / 1.371 GB, free: 5.547 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.999e-06/0.4068, allocations: 8 kB / 1.371 GB, free: 5.539 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000154/0.407, allocations: 31.83 kB / 1.371 GB, free: 5.508 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.784e-05/0.407, allocations: 8 kB / 1.371 GB, free: 5.5 MB / 1.061 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.000166/0.4072, allocations: 165.2 kB / 1.371 GB, free: 5.324 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.408e-05/0.4072, allocations: 15.89 kB / 1.371 GB, free: 5.309 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.829e-05/0.4072, allocations: 13.41 kB / 1.371 GB, free: 5.289 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.4072, allocations: 0 / 1.371 GB, free: 5.289 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.209e-06/0.4072, allocations: 0 / 1.371 GB, free: 5.289 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/0.4072, allocations: 8 kB / 1.371 GB, free: 5.281 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002342/0.4075, allocations: 176.7 kB / 1.372 GB, free: 5.066 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/0.4075, allocations: 3.938 kB / 1.372 GB, free: 5.062 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.13e-05/0.4076, allocations: 19.92 kB / 1.372 GB, free: 5.043 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.4076, allocations: 0 / 1.372 GB, free: 5.043 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.244e-05/0.4076, allocations: 0 / 1.372 GB, free: 5.043 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.4076, allocations: 0 / 1.372 GB, free: 5.043 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.4076, allocations: 0 / 1.372 GB, free: 5.043 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005978/0.4082, allocations: 282.4 kB / 1.372 GB, free: 4.73 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.636e-05/0.4082, allocations: 19.81 kB / 1.372 GB, free: 4.711 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.942e-05/0.4082, allocations: 4.062 kB / 1.372 GB, free: 4.707 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001026/0.4083, allocations: 15.98 kB / 1.372 GB, free: 4.691 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.964e-05/0.4084, allocations: 4 kB / 1.372 GB, free: 4.688 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.248e-05/0.4084, allocations: 7.984 kB / 1.372 GB, free: 4.68 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001406/0.4086, allocations: 132.8 kB / 1.372 GB, free: 4.551 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4086, allocations: 3.938 kB / 1.372 GB, free: 4.547 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002692/0.4088, allocations: 32 kB / 1.372 GB, free: 4.516 MB / 1.061 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.0008484/0.4097, allocations: 0.8205 MB / 1.373 GB, free: 3.648 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004571/0.4101, allocations: 303.8 kB / 1.373 GB, free: 3.309 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.4101, allocations: 0 / 1.373 GB, free: 3.309 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001644/0.4103, allocations: 121 kB / 1.373 GB, free: 3.172 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003057/0.4106, allocations: 19.98 kB / 1.373 GB, free: 3.152 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003198/0.4138, allocations: 2.248 MB / 1.376 GB, free: 0.6992 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001205/0.4139, allocations: 102.7 kB / 1.376 GB, free: 0.582 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001027/0.414, allocations: 24.62 kB / 1.376 GB, free: 0.5586 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.379e-05/0.4141, allocations: 35.42 kB / 1.376 GB, free: 0.5234 MB / 1.061 GB Notification: Performance of SimCode: time 8.02e-07/0.4141, allocations: 0 / 1.376 GB, free: 0.5234 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03766/0.4518, allocations: 3.775 MB / 1.379 GB, free: 12.9 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/11.99, allocations: 5.828 kB / 1.379 GB, free: 12.9 MB / 1.076 GB " [Timeout remaining time 288] (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 --stepSize=0.004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) [Timeout 840.0] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.935160501860082]