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.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005032/0.005032, allocations: 103 kB / 15.74 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0015/0.0015, allocations: 191.1 kB / 16.67 MB, free: 5.969 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.395/1.395, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.8/2.8, allocations: 482.4 MB / 0.7548 GB, free: 6.855 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001949/0.001949, allocations: 72.38 kB / 1.083 GB, free: 13.94 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.2729, allocations: 162.2 MB / 1.241 GB, free: 9.305 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003727/0.2767, allocations: 2.309 MB / 1.244 GB, free: 6.98 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001263/0.2779, allocations: 0.7715 MB / 1.244 GB, free: 6.203 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.786e-05/0.278, allocations: 8 kB / 1.244 GB, free: 6.195 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.000529/0.2786, allocations: 155.3 kB / 1.245 GB, free: 6.043 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001715/0.2788, allocations: 59.67 kB / 1.245 GB, free: 5.984 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001474/0.2789, allocations: 55.81 kB / 1.245 GB, free: 5.93 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002439/0.2792, allocations: 163.5 kB / 1.245 GB, free: 5.77 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002277/0.2794, allocations: 97.31 kB / 1.245 GB, free: 5.676 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001149/0.2795, allocations: 63.77 kB / 1.245 GB, free: 5.613 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001576/0.2797, allocations: 75.69 kB / 1.245 GB, free: 5.539 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.514e-05/0.2797, allocations: 15.94 kB / 1.245 GB, free: 5.523 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001135/0.2799, allocations: 47.89 kB / 1.245 GB, free: 5.477 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 6.153e-05/0.2799, allocations: 39.89 kB / 1.245 GB, free: 5.438 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 8.649e-05/0.28, allocations: 63.67 kB / 1.245 GB, free: 5.375 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002545/0.2803, allocations: 175.2 kB / 1.245 GB, free: 5.203 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.2803, allocations: 0 / 1.245 GB, free: 5.203 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.203e-06/0.2803, allocations: 0 / 1.245 GB, free: 5.203 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 9.608e-06/0.2803, allocations: 0 / 1.245 GB, free: 5.203 MB / 0.9669 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.000711/0.281, allocations: 0.4905 MB / 1.246 GB, free: 4.652 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.317e-05/0.2811, allocations: 12.03 kB / 1.246 GB, free: 4.641 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.391e-05/0.2811, allocations: 46.73 kB / 1.246 GB, free: 4.586 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001962/0.2813, allocations: 24.83 kB / 1.246 GB, free: 4.562 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002571/0.2816, allocations: 216.1 kB / 1.246 GB, free: 4.312 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.905e-05/0.2817, allocations: 30.45 kB / 1.246 GB, free: 4.277 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.383e-05/0.2817, allocations: 15.94 kB / 1.246 GB, free: 4.262 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002951/0.282, allocations: 148.2 kB / 1.246 GB, free: 4.102 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.282, allocations: 0 / 1.246 GB, free: 4.102 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.752e-05/0.282, allocations: 11.94 kB / 1.246 GB, free: 4.09 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.967e-05/0.2821, allocations: 4 kB / 1.246 GB, free: 4.086 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002068/0.2823, allocations: 87.88 kB / 1.246 GB, free: 4 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008765/0.2832, allocations: 0.6442 MB / 1.247 GB, free: 3.293 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002401/0.2834, allocations: 62.55 kB / 1.247 GB, free: 3.223 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.239e-05/0.2835, allocations: 28.84 kB / 1.247 GB, free: 3.191 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 9.518e-06/0.2835, allocations: 0 / 1.247 GB, free: 3.191 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002123/0.2837, allocations: 149.9 kB / 1.247 GB, free: 3.023 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.523e-06/0.2838, allocations: 0 / 1.247 GB, free: 3.023 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0003876/0.2841, allocations: 167.2 kB / 1.247 GB, free: 2.848 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.954e-05/0.2842, allocations: 136.5 kB / 1.248 GB, free: 2.684 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001874/0.2844, allocations: 186.8 kB / 1.248 GB, free: 2.492 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.072e-05/0.2845, allocations: 25.7 kB / 1.248 GB, free: 2.461 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 9.893e-05/0.2846, allocations: 140 kB / 1.248 GB, free: 2.316 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.173e-05/0.2846, allocations: 27.83 kB / 1.248 GB, free: 2.289 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.022e-05/0.2847, allocations: 45.67 kB / 1.248 GB, free: 2.238 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001473/0.2848, allocations: 326.8 kB / 1.248 GB, free: 1.91 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001042/0.285, allocations: 35.98 kB / 1.248 GB, free: 1.875 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001535/0.2851, allocations: 105.4 kB / 1.248 GB, free: 1.738 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002844/0.2854, allocations: 234.3 kB / 1.249 GB, free: 1.457 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.2854, allocations: 3.984 kB / 1.249 GB, free: 1.453 MB / 0.9669 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003926/0.2858, allocations: 244.7 kB / 1.249 GB, free: 1.195 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 5.67e-05/0.2859, allocations: 67.34 kB / 1.249 GB, free: 1.117 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.419e-06/0.2859, allocations: 0 / 1.249 GB, free: 1.117 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.2859, allocations: 4 kB / 1.249 GB, free: 1.113 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001214/0.286, allocations: 27.98 kB / 1.249 GB, free: 1.086 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.919e-06/0.2861, allocations: 7.938 kB / 1.249 GB, free: 1.078 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001394/0.2862, allocations: 24.19 kB / 1.249 GB, free: 1.055 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.077e-05/0.2862, allocations: 20 kB / 1.249 GB, free: 1.035 MB / 0.9669 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.0001428/0.2864, allocations: 155.5 kB / 1.249 GB, free: 0.8672 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.799e-05/0.2864, allocations: 19.83 kB / 1.249 GB, free: 0.8477 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.098e-05/0.2865, allocations: 17.39 kB / 1.249 GB, free: 0.8242 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.2865, allocations: 0 / 1.249 GB, free: 0.8242 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.287e-06/0.2865, allocations: 3.938 kB / 1.249 GB, free: 0.8203 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.2865, allocations: 0 / 1.249 GB, free: 0.8203 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001969/0.2867, allocations: 217.5 kB / 1.249 GB, free: 0.5586 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.2867, allocations: 8 kB / 1.249 GB, free: 0.5508 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.305e-05/0.2868, allocations: 12 kB / 1.249 GB, free: 0.5391 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.631e-06/0.2868, allocations: 3.938 kB / 1.249 GB, free: 0.5352 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/0.2868, allocations: 0 / 1.249 GB, free: 0.5352 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.2868, allocations: 0 / 1.249 GB, free: 0.5352 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/0.2868, allocations: 7.984 kB / 1.249 GB, free: 0.5273 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003998/0.2872, allocations: 202.8 kB / 1.25 GB, free: 312 kB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.013e-05/0.2873, allocations: 97.09 kB / 1.25 GB, free: 196 kB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.807e-05/0.2873, allocations: 3.938 kB / 1.25 GB, free: 192 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001058/0.2874, allocations: 11.98 kB / 1.25 GB, free: 180 kB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.748e-05/0.2875, allocations: 11.94 kB / 1.25 GB, free: 168 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.072e-05/0.2875, allocations: 4 kB / 1.25 GB, free: 164 kB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001149/0.2877, allocations: 132.3 kB / 1.25 GB, free: 32 kB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2877, allocations: 0 / 1.25 GB, free: 32 kB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002486/0.2879, allocations: 31.94 kB / 1.25 GB, free: 0 / 0.9669 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.0006956/0.2886, allocations: 0.7546 MB / 1.251 GB, free: 15.21 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003477/0.289, allocations: 222.6 kB / 1.251 GB, free: 14.97 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.289, allocations: 0.6875 kB / 1.251 GB, free: 14.97 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001389/0.2891, allocations: 107.5 kB / 1.251 GB, free: 14.85 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002154/0.2894, allocations: 25.61 kB / 1.251 GB, free: 14.83 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002321/0.2917, allocations: 1.965 MB / 1.253 GB, free: 12.71 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003535/0.2921, allocations: 0.7158 MB / 1.254 GB, free: 11.97 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.79e-05/0.2921, allocations: 24.36 kB / 1.254 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.949e-05/0.2922, allocations: 39.42 kB / 1.254 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of SimCode: time 2.214e-06/0.2922, allocations: 112 / 1.254 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02443/0.3167, allocations: 3.131 MB / 1.257 GB, free: 8.887 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.59/7.907, allocations: 11.89 kB / 1.257 GB, free: 8.879 MB / 0.9825 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.csv --start-time 0 --stop-time 10 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_latest_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.csv","/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) Reference file matches