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.001761/0.001761, allocations: 114.7 kB / 17.16 MB, free: 5.895 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.001847/0.001847, allocations: 210.3 kB / 20.13 MB, free: 2.949 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.452/1.452, allocations: 230.6 MB / 253.5 MB, free: 15.12 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 2.888/2.888, allocations: 0.49 GB / 0.7923 GB, free: 1.375 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_12_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="cs",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.002188/0.002188, allocations: 67.91 kB / 1.149 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.04/1.042, allocations: 176.1 MB / 1.321 GB, free: 24.74 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.00306/1.045, allocations: 2.352 MB / 1.324 GB, free: 23.13 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001053/1.046, allocations: 0.868 MB / 1.325 GB, free: 22.54 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.17e-05/1.047, allocations: 2.562 kB / 1.325 GB, free: 22.54 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.000487/1.047, allocations: 145.3 kB / 1.325 GB, free: 22.45 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001426/1.047, allocations: 64.56 kB / 1.325 GB, free: 22.41 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001477/1.047, allocations: 74.39 kB / 1.325 GB, free: 22.37 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001823/1.047, allocations: 161.5 kB / 1.325 GB, free: 22.29 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002115/1.048, allocations: 76.16 kB / 1.325 GB, free: 22.26 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001285/1.048, allocations: 68.58 kB / 1.325 GB, free: 22.23 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000125/1.048, allocations: 82.06 kB / 1.325 GB, free: 22.19 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.02e-05/1.048, allocations: 10.94 kB / 1.325 GB, free: 22.19 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 9.288e-05/1.048, allocations: 50.94 kB / 1.325 GB, free: 22.18 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 4.568e-05/1.048, allocations: 41.25 kB / 1.325 GB, free: 22.16 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 5.865e-05/1.048, allocations: 67.22 kB / 1.325 GB, free: 22.11 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002/1.048, allocations: 180.1 kB / 1.326 GB, free: 22.04 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/1.048, allocations: 3.938 kB / 1.326 GB, free: 22.04 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.232e-06/1.048, allocations: 0 / 1.326 GB, free: 22.04 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.36e-06/1.048, allocations: 0 / 1.326 GB, free: 22.04 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.0005914/1.049, allocations: 0.4928 MB / 1.326 GB, free: 21.55 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/1.049, allocations: 15.14 kB / 1.326 GB, free: 21.55 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.785e-05/1.049, allocations: 11.16 kB / 1.326 GB, free: 21.54 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.758e-05/1.049, allocations: 40.95 kB / 1.326 GB, free: 21.5 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002667/1.049, allocations: 39.59 kB / 1.326 GB, free: 21.48 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001847/1.049, allocations: 213.2 kB / 1.326 GB, free: 21.26 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.032e-05/1.05, allocations: 35.23 kB / 1.326 GB, free: 21.23 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.481e-05/1.05, allocations: 12.62 kB / 1.326 GB, free: 21.22 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002319/1.05, allocations: 155.4 kB / 1.327 GB, free: 21.13 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/1.05, allocations: 0 / 1.327 GB, free: 21.13 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.511e-05/1.05, allocations: 3.156 kB / 1.327 GB, free: 21.13 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.489e-05/1.05, allocations: 3 kB / 1.327 GB, free: 21.13 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001696/1.05, allocations: 91.78 kB / 1.327 GB, free: 21.1 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006341/1.051, allocations: 0.638 MB / 1.327 GB, free: 20.54 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002065/1.051, allocations: 52.62 kB / 1.327 GB, free: 20.51 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.299e-05/1.051, allocations: 30.48 kB / 1.327 GB, free: 20.49 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.546e-05/1.051, allocations: 0 / 1.327 GB, free: 20.49 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000152/1.051, allocations: 149.8 kB / 1.327 GB, free: 20.36 MB / 1.061 GB Notification: Performance of pre-optimization done (n=7): time 1.193e-06/1.051, allocations: 6.656 kB / 1.327 GB, free: 20.36 MB / 1.061 GB Notification: Performance of matching and sorting (n=7): time 0.0003735/1.051, allocations: 156.9 kB / 1.328 GB, free: 20.26 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.61e-05/1.051, allocations: 138.6 kB / 1.328 GB, free: 20.1 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001541/1.052, allocations: 186.1 kB / 1.328 GB, free: 19.97 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.299e-05/1.052, allocations: 27.36 kB / 1.328 GB, free: 19.94 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 5.771e-05/1.052, allocations: 139.8 kB / 1.328 GB, free: 19.81 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.151e-05/1.052, allocations: 23.38 kB / 1.328 GB, free: 19.79 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.087e-05/1.052, allocations: 43.59 kB / 1.328 GB, free: 19.76 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.645e-05/1.052, allocations: 321.3 kB / 1.328 GB, free: 19.44 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.249e-05/1.052, allocations: 42.72 kB / 1.329 GB, free: 19.43 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001114/1.052, allocations: 116.7 kB / 1.329 GB, free: 19.32 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002112/1.052, allocations: 230.1 kB / 1.329 GB, free: 19.09 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/1.052, allocations: 1.031 kB / 1.329 GB, free: 19.09 MB / 1.061 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003413/1.053, allocations: 248.2 kB / 1.329 GB, free: 18.94 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 3.486e-05/1.053, allocations: 62.62 kB / 1.329 GB, free: 18.87 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.326e-06/1.053, allocations: 7.25 kB / 1.329 GB, free: 18.87 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/1.053, allocations: 3.562 kB / 1.329 GB, free: 18.87 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001216/1.053, allocations: 29.52 kB / 1.329 GB, free: 18.86 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.899e-06/1.053, allocations: 7.156 kB / 1.329 GB, free: 18.86 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001327/1.053, allocations: 23.59 kB / 1.329 GB, free: 18.86 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.837e-05/1.053, allocations: 15 kB / 1.329 GB, free: 18.85 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.0001002/1.053, allocations: 166.2 kB / 1.329 GB, free: 18.69 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.64e-05/1.053, allocations: 15.88 kB / 1.329 GB, free: 18.68 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.875e-05/1.053, allocations: 12.5 kB / 1.329 GB, free: 18.66 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.482e-06/1.053, allocations: 1.062 kB / 1.329 GB, free: 18.66 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/1.053, allocations: 1 kB / 1.329 GB, free: 18.66 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/1.053, allocations: 3.281 kB / 1.329 GB, free: 18.66 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001332/1.053, allocations: 224.5 kB / 1.33 GB, free: 18.44 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/1.053, allocations: 4 kB / 1.33 GB, free: 18.43 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.038e-05/1.053, allocations: 11.33 kB / 1.33 GB, free: 18.43 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/1.053, allocations: 0 / 1.33 GB, free: 18.43 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.409e-05/1.053, allocations: 2.281 kB / 1.33 GB, free: 18.43 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/1.053, allocations: 0 / 1.33 GB, free: 18.43 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/1.053, allocations: 0.625 kB / 1.33 GB, free: 18.43 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003666/1.054, allocations: 221 kB / 1.33 GB, free: 18.29 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.983e-05/1.054, allocations: 88.28 kB / 1.33 GB, free: 18.18 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.79e-05/1.054, allocations: 7.172 kB / 1.33 GB, free: 18.18 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.301e-05/1.054, allocations: 6.344 kB / 1.33 GB, free: 18.18 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.333e-05/1.054, allocations: 11.28 kB / 1.33 GB, free: 18.18 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.307e-06/1.054, allocations: 2.031 kB / 1.33 GB, free: 18.18 MB / 1.061 GB Notification: Performance of sorting global known variables: time 9.559e-05/1.054, allocations: 139.4 kB / 1.33 GB, free: 18.08 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/1.054, allocations: 0 / 1.33 GB, free: 18.08 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002503/1.054, allocations: 39.67 kB / 1.33 GB, free: 18.07 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.0005064/1.055, allocations: 0.7558 MB / 1.331 GB, free: 17.39 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002929/1.055, allocations: 211 kB / 1.331 GB, free: 17.23 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/1.055, allocations: 0 / 1.331 GB, free: 17.23 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001146/1.055, allocations: 91.81 kB / 1.331 GB, free: 17.16 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002147/1.055, allocations: 21.17 kB / 1.331 GB, free: 17.15 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001857/1.057, allocations: 1.969 MB / 1.333 GB, free: 15.55 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001339/1.057, allocations: 0.7155 MB / 1.334 GB, free: 14.85 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 6.735e-05/1.057, allocations: 21.12 kB / 1.334 GB, free: 14.85 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.098e-05/1.058, allocations: 45.75 kB / 1.334 GB, free: 14.81 MB / 1.061 GB Notification: Performance of SimCode: time 2.5e-07/1.058, allocations: 0 / 1.334 GB, free: 14.81 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02271/1.08, allocations: 3.203 MB / 1.337 GB, free: 14.28 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.428/9.509, allocations: 18.47 kB / 1.337 GB, free: 14.27 MB / 1.061 GB " [Timeout remaining time 290] (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: 15.935984415002167]