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.001661/0.001661, allocations: 104.7 kB / 16.45 MB, free: 6.449 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.001982/0.001982, allocations: 210.4 kB / 19.43 MB, free: 3.637 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.448/1.448, allocations: 230.6 MB / 252.8 MB, free: 9.117 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.132/3.132, allocations: 0.49 GB / 0.7916 GB, free: 33.48 MB / 0.6231 GB " [Timeout remaining time 177] 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.002272/0.002272, allocations: 61.66 kB / 1.149 GB, free: 26.43 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3525/0.3547, allocations: 176.1 MB / 1.321 GB, free: 3.32 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.004573/0.3593, allocations: 2.346 MB / 1.323 GB, free: 0.9609 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001591/0.3609, allocations: 0.8571 MB / 1.324 GB, free: 100 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001312/0.361, allocations: 8 kB / 1.324 GB, free: 92 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0006647/0.3617, allocations: 147.4 kB / 1.324 GB, free: 15.95 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0002453/0.3619, allocations: 67.59 kB / 1.324 GB, free: 15.88 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002264/0.3622, allocations: 63.81 kB / 1.324 GB, free: 15.82 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.000346/0.3625, allocations: 163.5 kB / 1.324 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002654/0.3628, allocations: 89.22 kB / 1.324 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002075/0.363, allocations: 71.77 kB / 1.324 GB, free: 15.5 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002566/0.3632, allocations: 79.59 kB / 1.325 GB, free: 15.42 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.291e-05/0.3633, allocations: 12 kB / 1.325 GB, free: 15.41 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001493/0.3634, allocations: 59.88 kB / 1.325 GB, free: 15.35 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 6.811e-05/0.3635, allocations: 35.91 kB / 1.325 GB, free: 15.31 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 8.924e-05/0.3636, allocations: 63.67 kB / 1.325 GB, free: 15.25 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003234/0.3639, allocations: 179.3 kB / 1.325 GB, free: 15.07 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3639, allocations: 0 / 1.325 GB, free: 15.07 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.064e-06/0.3639, allocations: 0 / 1.325 GB, free: 15.07 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.085e-06/0.3639, allocations: 4 kB / 1.325 GB, free: 15.07 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.0009052/0.3648, allocations: 0.4905 MB / 1.325 GB, free: 14.52 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.3649, allocations: 11.98 kB / 1.325 GB, free: 14.51 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001289/0.365, allocations: 42.75 kB / 1.325 GB, free: 14.46 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003047/0.3653, allocations: 36.81 kB / 1.325 GB, free: 14.42 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004316/0.3657, allocations: 224.6 kB / 1.326 GB, free: 14.16 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.464e-05/0.3658, allocations: 37.83 kB / 1.326 GB, free: 14.12 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.354e-05/0.3658, allocations: 12 kB / 1.326 GB, free: 14.11 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004119/0.3662, allocations: 156.2 kB / 1.326 GB, free: 13.95 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.3662, allocations: 0 / 1.326 GB, free: 13.95 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.639e-05/0.3663, allocations: 4 kB / 1.326 GB, free: 13.94 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.93e-05/0.3663, allocations: 4 kB / 1.326 GB, free: 13.94 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002176/0.3665, allocations: 95.81 kB / 1.326 GB, free: 13.84 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009918/0.3675, allocations: 0.6365 MB / 1.327 GB, free: 13.14 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002501/0.3677, allocations: 50.62 kB / 1.327 GB, free: 13.09 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.989e-05/0.3678, allocations: 28.84 kB / 1.327 GB, free: 13.05 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.427e-05/0.3678, allocations: 4.188 kB / 1.327 GB, free: 13.05 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002338/0.3681, allocations: 146.7 kB / 1.327 GB, free: 12.88 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.413e-06/0.3681, allocations: 0 / 1.327 GB, free: 12.88 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0004276/0.3685, allocations: 159.2 kB / 1.327 GB, free: 12.71 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001734/0.3687, allocations: 136.5 kB / 1.327 GB, free: 12.55 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002378/0.3689, allocations: 187.2 kB / 1.327 GB, free: 12.36 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.376e-05/0.3689, allocations: 25.7 kB / 1.327 GB, free: 12.32 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.369, allocations: 144 kB / 1.327 GB, free: 12.18 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.538e-05/0.3691, allocations: 15.89 kB / 1.327 GB, free: 12.16 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.37e-05/0.3692, allocations: 45.66 kB / 1.327 GB, free: 12.11 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001518/0.3693, allocations: 322.8 kB / 1.328 GB, free: 11.79 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.867e-05/0.3694, allocations: 39.97 kB / 1.328 GB, free: 11.75 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000156/0.3696, allocations: 115.5 kB / 1.328 GB, free: 11.6 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002969/0.3699, allocations: 234.3 kB / 1.328 GB, free: 11.32 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.3699, allocations: 0 / 1.328 GB, free: 11.32 MB / 1.029 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004279/0.3703, allocations: 248.6 kB / 1.328 GB, free: 11.06 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.727e-05/0.3703, allocations: 63.39 kB / 1.328 GB, free: 10.98 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.3704, allocations: 0 / 1.328 GB, free: 10.98 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.656e-05/0.3704, allocations: 4.312 kB / 1.328 GB, free: 10.98 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001262/0.3705, allocations: 35.92 kB / 1.329 GB, free: 10.95 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.866e-06/0.3705, allocations: 4 kB / 1.329 GB, free: 10.94 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001404/0.3707, allocations: 27.88 kB / 1.329 GB, free: 10.91 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.775e-05/0.3707, allocations: 8 kB / 1.329 GB, free: 10.91 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.0001677/0.3708, allocations: 170.2 kB / 1.329 GB, free: 10.73 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.063e-05/0.3709, allocations: 19.84 kB / 1.329 GB, free: 10.71 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.849e-05/0.3709, allocations: 13.41 kB / 1.329 GB, free: 10.68 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.3709, allocations: 4 kB / 1.329 GB, free: 10.68 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.3709, allocations: 0 / 1.329 GB, free: 10.68 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.3709, allocations: 0 / 1.329 GB, free: 10.68 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002185/0.3711, allocations: 213.6 kB / 1.329 GB, free: 10.42 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.3711, allocations: 3.938 kB / 1.329 GB, free: 10.42 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.924e-05/0.3712, allocations: 15.98 kB / 1.329 GB, free: 10.4 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.3712, allocations: 0 / 1.329 GB, free: 10.4 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.233e-05/0.3712, allocations: 0 / 1.329 GB, free: 10.4 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/0.3712, allocations: 4 kB / 1.329 GB, free: 10.4 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.3713, allocations: 0 / 1.329 GB, free: 10.4 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004299/0.3717, allocations: 222.7 kB / 1.329 GB, free: 10.16 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 8.099e-05/0.3718, allocations: 97.06 kB / 1.329 GB, free: 10.04 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.059e-05/0.3718, allocations: 4 kB / 1.329 GB, free: 10.04 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.328e-05/0.3719, allocations: 7.984 kB / 1.329 GB, free: 10.03 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.541e-05/0.372, allocations: 11.98 kB / 1.329 GB, free: 10.02 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.011e-05/0.372, allocations: 4 kB / 1.329 GB, free: 10.02 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001294/0.3721, allocations: 143.3 kB / 1.329 GB, free: 9.875 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3721, allocations: 3.938 kB / 1.329 GB, free: 9.871 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002633/0.3724, allocations: 35.95 kB / 1.329 GB, free: 9.836 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.0007609/0.3731, allocations: 0.7468 MB / 1.33 GB, free: 9.055 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003603/0.3735, allocations: 210.6 kB / 1.33 GB, free: 8.824 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3735, allocations: 0 / 1.33 GB, free: 8.824 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001314/0.3736, allocations: 91.38 kB / 1.33 GB, free: 8.723 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002648/0.3739, allocations: 17.2 kB / 1.331 GB, free: 8.707 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002932/0.3768, allocations: 1.983 MB / 1.332 GB, free: 6.574 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004798/0.3773, allocations: 0.7162 MB / 1.333 GB, free: 5.828 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.763e-05/0.3774, allocations: 20.64 kB / 1.333 GB, free: 5.809 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.89e-05/0.3775, allocations: 35.42 kB / 1.333 GB, free: 5.773 MB / 1.029 GB Notification: Performance of SimCode: time 8.72e-07/0.3775, allocations: 0 / 1.333 GB, free: 5.773 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03066/0.4081, allocations: 3.169 MB / 1.336 GB, free: 2.715 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.998/8.406, allocations: 3.984 kB / 1.336 GB, free: 2.711 MB / 1.029 GB " [Timeout remaining time 292] (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: 14.929659246932715]