Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_9_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001636/0.001636, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002026/0.002026, allocations: 196.6 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.327/1.327, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.346/2.346, allocations: 390.2 MB / 0.6647 GB, free: 436 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001577/0.001578, allocations: 59.89 kB / 0.8126 GB, free: 14.39 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6616/0.6632, allocations: 140.4 MB / 0.9497 GB, free: 9.086 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.002976/0.6662, allocations: 2.301 MB / 0.952 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009794/0.6672, allocations: 0.7789 MB / 0.9527 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.419e-05/0.6673, allocations: 2.719 kB / 0.9527 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0004817/0.6678, allocations: 144.7 kB / 0.9529 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001464/0.6679, allocations: 71.45 kB / 0.9529 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001207/0.6681, allocations: 51.86 kB / 0.953 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001721/0.6682, allocations: 159.5 kB / 0.9531 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002093/0.6685, allocations: 105.6 kB / 0.9532 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.161e-05/0.6686, allocations: 67.39 kB / 0.9533 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001229/0.6687, allocations: 74.41 kB / 0.9534 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.327e-05/0.6687, allocations: 11.34 kB / 0.9534 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001073/0.6688, allocations: 55.12 kB / 0.9534 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.775e-05/0.6689, allocations: 39.44 kB / 0.9535 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.794e-05/0.669, allocations: 63.17 kB / 0.9535 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001802/0.6691, allocations: 170.1 kB / 0.9537 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.6692, allocations: 0 / 0.9537 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.102e-06/0.6692, allocations: 0 / 0.9537 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.579e-06/0.6692, allocations: 0 / 0.9537 GB, free: 6.035 MB / 0.7169 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.0005081/0.6697, allocations: 491.8 kB / 0.9542 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.115e-05/0.6697, allocations: 9.688 kB / 0.9542 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.54e-05/0.6698, allocations: 50.77 kB / 0.9542 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001888/0.67, allocations: 26.55 kB / 0.9542 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001605/0.6701, allocations: 218.2 kB / 0.9545 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.038e-05/0.6702, allocations: 37.23 kB / 0.9545 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.467e-05/0.6702, allocations: 14.66 kB / 0.9545 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002354/0.6704, allocations: 145.7 kB / 0.9546 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.6705, allocations: 0 / 0.9546 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.548e-05/0.6705, allocations: 5.328 kB / 0.9546 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.635e-05/0.6705, allocations: 12.88 kB / 0.9547 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00018/0.6707, allocations: 89.66 kB / 0.9547 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006695/0.6714, allocations: 0.6427 MB / 0.9554 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002011/0.6716, allocations: 50.41 kB / 0.9554 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.105e-05/0.6717, allocations: 29.97 kB / 0.9554 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.316e-05/0.6717, allocations: 0 / 0.9554 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001564/0.6718, allocations: 151.9 kB / 0.9556 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 2.054e-06/0.6719, allocations: 0 / 0.9556 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003208/0.6722, allocations: 164.7 kB / 0.9557 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.82e-05/0.6722, allocations: 135.9 kB / 0.9559 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000125/0.6724, allocations: 187.8 kB / 0.9561 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.149e-05/0.6724, allocations: 26.86 kB / 0.9561 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.171e-05/0.6724, allocations: 141.3 kB / 0.9562 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.953e-05/0.6725, allocations: 27.05 kB / 0.9562 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.125e-05/0.6725, allocations: 40.05 kB / 0.9563 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.6e-05/0.6726, allocations: 326 kB / 0.9566 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.668e-05/0.6727, allocations: 37.03 kB / 0.9566 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000102/0.6728, allocations: 111.8 kB / 0.9567 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001867/0.673, allocations: 232.3 kB / 0.957 GB, free: 2.871 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.673, allocations: 1.469 kB / 0.957 GB, free: 2.871 MB / 0.7169 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002862/0.6733, allocations: 248.8 kB / 0.9572 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.862e-05/0.6733, allocations: 66.02 kB / 0.9573 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.6733, allocations: 3.906 kB / 0.9573 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.6733, allocations: 1.281 kB / 0.9573 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001171/0.6734, allocations: 31.11 kB / 0.9573 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.343e-06/0.6735, allocations: 3.062 kB / 0.9573 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001332/0.6736, allocations: 27.02 kB / 0.9573 GB, free: 2.605 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.338e-05/0.6736, allocations: 7.156 kB / 0.9573 GB, free: 2.605 MB / 0.7169 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 8.67e-05/0.6737, allocations: 170.3 kB / 0.9575 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.205e-05/0.6737, allocations: 15.34 kB / 0.9575 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.448e-05/0.6738, allocations: 13.09 kB / 0.9575 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.6738, allocations: 2.062 kB / 0.9575 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.6738, allocations: 0 / 0.9575 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/0.6738, allocations: 0 / 0.9575 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001092/0.6739, allocations: 213.8 kB / 0.9577 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.6739, allocations: 0 / 0.9577 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.206e-05/0.674, allocations: 17.17 kB / 0.9577 GB, free: 2.18 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.245e-06/0.674, allocations: 3.938 kB / 0.9577 GB, free: 2.176 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.216e-05/0.674, allocations: 1.625 kB / 0.9577 GB, free: 2.176 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.674, allocations: 1.469 kB / 0.9577 GB, free: 2.176 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.674, allocations: 0 / 0.9577 GB, free: 2.176 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003258/0.6744, allocations: 211.9 kB / 0.9579 GB, free: 2.02 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.915e-05/0.6744, allocations: 95.7 kB / 0.958 GB, free: 1.91 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.076e-05/0.6744, allocations: 11.77 kB / 0.9581 GB, free: 1.902 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.452e-05/0.6745, allocations: 10.88 kB / 0.9581 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.887e-05/0.6746, allocations: 14.86 kB / 0.9581 GB, free: 1.887 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.386e-06/0.6746, allocations: 2.938 kB / 0.9581 GB, free: 1.887 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.52e-05/0.6747, allocations: 132.1 kB / 0.9582 GB, free: 1.785 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6747, allocations: 3.938 kB / 0.9582 GB, free: 1.781 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002592/0.675, allocations: 26.88 kB / 0.9582 GB, free: 1.781 MB / 0.7169 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.0004595/0.6754, allocations: 0.7655 MB / 0.959 GB, free: 1.078 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002647/0.6757, allocations: 217.9 kB / 0.9592 GB, free: 0.9023 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.6757, allocations: 0.6875 kB / 0.9592 GB, free: 0.9023 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001011/0.6758, allocations: 102.9 kB / 0.9593 GB, free: 0.8164 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002232/0.6761, allocations: 24.75 kB / 0.9593 GB, free: 0.8008 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002048/0.6781, allocations: 1.954 MB / 0.9612 GB, free: 15.11 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002974/0.6784, allocations: 0.7175 MB / 0.9619 GB, free: 14.39 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001152/0.6786, allocations: 22.41 kB / 0.9619 GB, free: 14.38 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.841e-05/0.6786, allocations: 37.95 kB / 0.962 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of SimCode: time 2.4e-07/0.6786, allocations: 0 / 0.962 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02026/0.6989, allocations: 3.066 MB / 0.965 GB, free: 12.78 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.25/7.949, allocations: 14.83 kB / 0.965 GB, free: 12.77 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_9_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches