Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_10_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.001724/0.001724, 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.002122/0.002122, allocations: 192.5 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.352/1.352, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.531/2.531, allocations: 437.1 MB / 0.7104 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 59.91 kB / 0.8693 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5407/0.5421, allocations: 151.6 MB / 1.017 GB, free: 2.5 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003986/0.5462, allocations: 2.318 MB / 1.02 GB, free: 176 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001328/0.5475, allocations: 0.7754 MB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001229/0.5477, allocations: 4 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0005748/0.5483, allocations: 155.2 kB / 1.021 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.000229/0.5485, allocations: 59.66 kB / 1.021 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002092/0.5487, allocations: 59.81 kB / 1.021 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000305/0.549, allocations: 155.5 kB / 1.021 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002944/0.5493, allocations: 99.3 kB / 1.021 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001397/0.5495, allocations: 67.72 kB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001649/0.5497, allocations: 67.73 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.734e-05/0.5497, allocations: 16 kB / 1.021 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000128/0.5498, allocations: 51.91 kB / 1.021 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 5.787e-05/0.5499, allocations: 39.89 kB / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 8.162e-05/0.55, allocations: 67.66 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002378/0.5502, allocations: 163.4 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.5502, allocations: 0 / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.282e-06/0.5503, allocations: 0 / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.02e-06/0.5503, allocations: 4 kB / 1.021 GB, free: 14.4 MB / 0.7794 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.0006842/0.551, allocations: 494.5 kB / 1.022 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.504e-05/0.551, allocations: 12.03 kB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.551e-05/0.551, allocations: 46.73 kB / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002119/0.5513, allocations: 28.73 kB / 1.022 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002363/0.5515, allocations: 208 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.972e-05/0.5516, allocations: 34.45 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.304e-05/0.5516, allocations: 15.94 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002736/0.5519, allocations: 150.9 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.5519, allocations: 11.94 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.354e-05/0.5519, allocations: 0 / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2e-05/0.552, allocations: 8 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001919/0.5521, allocations: 87.88 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000812/0.553, allocations: 0.6441 MB / 1.023 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002265/0.5532, allocations: 50.56 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.425e-05/0.5533, allocations: 28.91 kB / 1.023 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.463e-05/0.5533, allocations: 3.938 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001948/0.5535, allocations: 150.9 kB / 1.023 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.693e-06/0.5535, allocations: 0 / 1.023 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0003535/0.5539, allocations: 159.2 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.286e-05/0.554, allocations: 136.5 kB / 1.024 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001505/0.5541, allocations: 182.2 kB / 1.024 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.145e-05/0.5542, allocations: 25.7 kB / 1.024 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001187/0.5543, allocations: 139.9 kB / 1.024 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.059e-05/0.5543, allocations: 31.59 kB / 1.024 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.243e-05/0.5544, allocations: 37.64 kB / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001297/0.5545, allocations: 326.8 kB / 1.024 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000101/0.5547, allocations: 35.97 kB / 1.024 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001364/0.5548, allocations: 111 kB / 1.024 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002544/0.5551, allocations: 226.4 kB / 1.025 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.5551, allocations: 4 kB / 1.025 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003584/0.5554, allocations: 244.6 kB / 1.025 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.628e-05/0.5555, allocations: 71.27 kB / 1.025 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.5555, allocations: 4 kB / 1.025 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.5555, allocations: 4 kB / 1.025 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000121/0.5557, allocations: 23.98 kB / 1.025 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.5557, allocations: 7.938 kB / 1.025 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001494/0.5558, allocations: 32.14 kB / 1.025 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.65e-05/0.5559, allocations: 8 kB / 1.025 GB, free: 10.25 MB / 0.7794 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.0001349/0.556, allocations: 163.5 kB / 1.025 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.697e-05/0.556, allocations: 15.75 kB / 1.025 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.162e-05/0.5561, allocations: 13.41 kB / 1.025 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.5561, allocations: 3.938 kB / 1.025 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.5561, allocations: 4 kB / 1.025 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.5561, allocations: 0 / 1.025 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001847/0.5563, allocations: 213.6 kB / 1.025 GB, free: 9.789 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.5563, allocations: 4 kB / 1.025 GB, free: 9.785 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.504e-05/0.5564, allocations: 15.92 kB / 1.025 GB, free: 9.77 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.5564, allocations: 3.938 kB / 1.025 GB, free: 9.766 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.516e-05/0.5564, allocations: 4 kB / 1.025 GB, free: 9.762 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.5564, allocations: 0 / 1.025 GB, free: 9.762 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.5564, allocations: 0 / 1.025 GB, free: 9.762 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003825/0.5568, allocations: 214.9 kB / 1.026 GB, free: 9.527 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.756e-05/0.5569, allocations: 101 kB / 1.026 GB, free: 9.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.464e-05/0.5569, allocations: 11.94 kB / 1.026 GB, free: 9.398 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001073/0.557, allocations: 7.984 kB / 1.026 GB, free: 9.391 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.582e-05/0.5571, allocations: 11.98 kB / 1.026 GB, free: 9.379 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.011e-05/0.5571, allocations: 4 kB / 1.026 GB, free: 9.375 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001133/0.5573, allocations: 136.3 kB / 1.026 GB, free: 9.242 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5573, allocations: 0 / 1.026 GB, free: 9.242 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002616/0.5575, allocations: 28 kB / 1.026 GB, free: 9.215 MB / 0.7794 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.0006457/0.5582, allocations: 0.7623 MB / 1.027 GB, free: 8.414 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003105/0.5585, allocations: 215.3 kB / 1.027 GB, free: 8.18 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.5585, allocations: 0 / 1.027 GB, free: 8.18 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001259/0.5586, allocations: 115.4 kB / 1.027 GB, free: 8.055 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002249/0.5589, allocations: 17.86 kB / 1.027 GB, free: 8.039 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0021/0.561, allocations: 1.949 MB / 1.029 GB, free: 5.941 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002858/0.5613, allocations: 0.7197 MB / 1.03 GB, free: 5.195 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 8.793e-05/0.5614, allocations: 24.56 kB / 1.03 GB, free: 5.172 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.851e-05/0.5615, allocations: 35.42 kB / 1.03 GB, free: 5.137 MB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/0.5615, allocations: 0 / 1.03 GB, free: 5.137 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01934/0.5808, allocations: 3.069 MB / 1.033 GB, free: 2.156 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.134/7.714, allocations: 3.953 kB / 1.033 GB, free: 2.152 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches