Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001774/0.001774, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.001795/0.001795, allocations: 214.7 kB / 22.26 MB, free: 5.117 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.524/1.524, allocations: 230.6 MB / 256 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.394/3.394, allocations: 0.49 GB / 0.7951 GB, free: 33.25 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_12_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.002995/0.002995, allocations: 61.88 kB / 1.154 GB, free: 25.79 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3935/0.3965, allocations: 176.1 MB / 1.326 GB, free: 2.008 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.00414/0.4006, allocations: 2.379 MB / 1.328 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001609/0.4022, allocations: 0.8881 MB / 1.329 GB, free: 14.73 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001484/0.4024, allocations: 0 / 1.329 GB, free: 14.73 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0006937/0.403, allocations: 163.3 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0002337/0.4033, allocations: 63.67 kB / 1.329 GB, free: 14.5 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002332/0.4035, allocations: 67.8 kB / 1.329 GB, free: 14.44 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002837/0.4038, allocations: 155.5 kB / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002715/0.4041, allocations: 81.11 kB / 1.33 GB, free: 14.2 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002238/0.4043, allocations: 79.7 kB / 1.33 GB, free: 14.12 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000232/0.4045, allocations: 75.67 kB / 1.33 GB, free: 14.05 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.534e-05/0.4046, allocations: 12 kB / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000176/0.4047, allocations: 51.89 kB / 1.33 GB, free: 13.99 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 7.934e-05/0.4048, allocations: 43.83 kB / 1.33 GB, free: 13.95 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001049/0.4049, allocations: 67.67 kB / 1.33 GB, free: 13.88 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003448/0.4053, allocations: 179.3 kB / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.4053, allocations: 0 / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.713e-06/0.4053, allocations: 0 / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.296e-05/0.4053, allocations: 0 / 1.33 GB, free: 13.7 MB / 1.029 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.0008562/0.4061, allocations: 434.6 kB / 1.33 GB, free: 13.24 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.4062, allocations: 8.031 kB / 1.33 GB, free: 13.23 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.076e-05/0.4062, allocations: 50.73 kB / 1.331 GB, free: 13.17 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003094/0.4065, allocations: 32.81 kB / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002801/0.4068, allocations: 162.8 kB / 1.331 GB, free: 12.96 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.29e-05/0.4069, allocations: 67.53 kB / 1.331 GB, free: 12.88 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.406e-05/0.4069, allocations: 12 kB / 1.331 GB, free: 12.87 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003011/0.4072, allocations: 146 kB / 1.331 GB, free: 12.71 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.4072, allocations: 0 / 1.331 GB, free: 12.71 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.67e-05/0.4073, allocations: 4 kB / 1.331 GB, free: 12.71 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.867e-05/0.4073, allocations: 4 kB / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002097/0.4075, allocations: 93.52 kB / 1.331 GB, free: 12.61 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009606/0.4085, allocations: 0.6043 MB / 1.332 GB, free: 11.95 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002549/0.4087, allocations: 58.48 kB / 1.332 GB, free: 11.89 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.955e-05/0.4088, allocations: 32.91 kB / 1.332 GB, free: 11.85 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.673e-05/0.4088, allocations: 4.125 kB / 1.332 GB, free: 11.85 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002296/0.409, allocations: 146.7 kB / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.409, allocations: 0 / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0003909/0.4094, allocations: 159.2 kB / 1.332 GB, free: 11.51 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.246e-05/0.4095, allocations: 136.5 kB / 1.332 GB, free: 11.35 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002027/0.4097, allocations: 195.2 kB / 1.332 GB, free: 11.14 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.077e-05/0.4097, allocations: 25.7 kB / 1.332 GB, free: 11.11 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001074/0.4098, allocations: 143.9 kB / 1.332 GB, free: 10.96 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.509e-05/0.4099, allocations: 23.83 kB / 1.332 GB, free: 10.94 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.687e-05/0.4099, allocations: 41.66 kB / 1.333 GB, free: 10.89 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001461/0.4101, allocations: 326.8 kB / 1.333 GB, free: 10.57 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.907e-05/0.4102, allocations: 35.98 kB / 1.333 GB, free: 10.53 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001465/0.4103, allocations: 105.4 kB / 1.333 GB, free: 10.39 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002853/0.4106, allocations: 226.4 kB / 1.333 GB, free: 10.12 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.4106, allocations: 0 / 1.333 GB, free: 10.12 MB / 1.029 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003992/0.411, allocations: 256.6 kB / 1.333 GB, free: 9.852 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.672e-05/0.4111, allocations: 63.34 kB / 1.334 GB, free: 9.777 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.4111, allocations: 0 / 1.334 GB, free: 9.777 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/0.4111, allocations: 4 kB / 1.334 GB, free: 9.773 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001294/0.4112, allocations: 32.3 kB / 1.334 GB, free: 9.742 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.29e-05/0.4112, allocations: 15.92 kB / 1.334 GB, free: 9.727 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001456/0.4114, allocations: 19.89 kB / 1.334 GB, free: 9.707 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.689e-05/0.4114, allocations: 8 kB / 1.334 GB, free: 9.699 MB / 1.029 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.0001604/0.4116, allocations: 167.5 kB / 1.334 GB, free: 9.52 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.13e-05/0.4116, allocations: 19.84 kB / 1.334 GB, free: 9.5 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.926e-05/0.4116, allocations: 21.33 kB / 1.334 GB, free: 9.469 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.4116, allocations: 0 / 1.334 GB, free: 9.469 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.4116, allocations: 4 kB / 1.334 GB, free: 9.465 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.4116, allocations: 4 kB / 1.334 GB, free: 9.461 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002293/0.4119, allocations: 180.7 kB / 1.334 GB, free: 9.242 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.4119, allocations: 3.938 kB / 1.334 GB, free: 9.238 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.65e-05/0.412, allocations: 11.94 kB / 1.334 GB, free: 9.227 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.149e-06/0.412, allocations: 3.984 kB / 1.334 GB, free: 9.223 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.773e-05/0.412, allocations: 8 kB / 1.334 GB, free: 9.215 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.412, allocations: 0 / 1.334 GB, free: 9.215 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.412, allocations: 0 / 1.334 GB, free: 9.215 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004164/0.4124, allocations: 214.7 kB / 1.334 GB, free: 8.98 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.13e-05/0.4124, allocations: 16 kB / 1.334 GB, free: 8.965 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.077e-05/0.4125, allocations: 4 kB / 1.334 GB, free: 8.961 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.79e-05/0.4126, allocations: 11.98 kB / 1.334 GB, free: 8.949 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.113e-05/0.4126, allocations: 15.92 kB / 1.334 GB, free: 8.934 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.374e-06/0.4126, allocations: 0 / 1.334 GB, free: 8.934 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001184/0.4128, allocations: 128.3 kB / 1.334 GB, free: 8.809 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.4128, allocations: 4.062 kB / 1.334 GB, free: 8.805 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002651/0.413, allocations: 39.89 kB / 1.334 GB, free: 8.766 MB / 1.029 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.000748/0.4138, allocations: 0.7546 MB / 1.335 GB, free: 7.977 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003574/0.4141, allocations: 211 kB / 1.335 GB, free: 7.746 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.4141, allocations: 0 / 1.335 GB, free: 7.746 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001311/0.4143, allocations: 87.38 kB / 1.335 GB, free: 7.648 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002467/0.4145, allocations: 19.42 kB / 1.335 GB, free: 7.633 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002615/0.4171, allocations: 1.978 MB / 1.337 GB, free: 5.5 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003511/0.4175, allocations: 0.7162 MB / 1.338 GB, free: 4.758 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.616e-05/0.4175, allocations: 24.56 kB / 1.338 GB, free: 4.734 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.991e-05/0.4176, allocations: 39.42 kB / 1.338 GB, free: 4.695 MB / 1.029 GB Notification: Performance of SimCode: time 7.71e-07/0.4176, allocations: 0 / 1.338 GB, free: 4.695 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03563/0.4533, allocations: 3.377 MB / 1.341 GB, free: 1.461 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.91, allocations: 10.39 kB / 1.341 GB, free: 1.453 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat --tempDir=temp_Buildings_12_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.982612180989236]