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.006757/0.006757, allocations: 97.27 kB / 15.73 MB, free: 6.066 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.001591/0.001591, allocations: 195.2 kB / 16.67 MB, free: 5.973 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.316/1.316, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.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.381/2.381, allocations: 437 MB / 0.7105 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001401/0.001401, allocations: 63.89 kB / 1.018 GB, free: 9.949 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7252/0.7266, allocations: 151.6 MB / 1.166 GB, free: 3.816 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.00323/0.7299, allocations: 2.323 MB / 1.168 GB, free: 1.484 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001123/0.731, allocations: 0.7868 MB / 1.169 GB, free: 0.6914 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.261e-05/0.7311, allocations: 4 kB / 1.169 GB, free: 0.6875 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0005442/0.7317, allocations: 148.2 kB / 1.169 GB, free: 0.543 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001662/0.7319, allocations: 59.66 kB / 1.169 GB, free: 496 kB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001511/0.732, allocations: 59.81 kB / 1.169 GB, free: 436 kB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001973/0.7322, allocations: 159.4 kB / 1.17 GB, free: 276 kB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002165/0.7325, allocations: 97.05 kB / 1.17 GB, free: 176 kB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001031/0.7326, allocations: 71.7 kB / 1.17 GB, free: 104 kB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001337/0.7327, allocations: 67.73 kB / 1.17 GB, free: 36 kB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.228e-05/0.7327, allocations: 12 kB / 1.17 GB, free: 24 kB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000126/0.7329, allocations: 55.98 kB / 1.17 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 5.143e-05/0.7329, allocations: 31.91 kB / 1.17 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 7.685e-05/0.733, allocations: 67.67 kB / 1.17 GB, free: 15.87 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0002281/0.7332, allocations: 170.9 kB / 1.17 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.7333, allocations: 0 / 1.17 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.134e-06/0.7333, allocations: 0 / 1.17 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 5.941e-06/0.7333, allocations: 0 / 1.17 GB, free: 15.71 MB / 0.9044 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.0007887/0.7341, allocations: 0.5022 MB / 1.171 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.7341, allocations: 8.922 kB / 1.171 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.785e-05/0.7342, allocations: 38.75 kB / 1.171 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002176/0.7344, allocations: 28.83 kB / 1.171 GB, free: 15.06 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002488/0.7347, allocations: 216.1 kB / 1.171 GB, free: 14.81 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.998e-05/0.7347, allocations: 34.45 kB / 1.171 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.944e-05/0.7348, allocations: 15.92 kB / 1.171 GB, free: 14.76 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003003/0.7351, allocations: 155.5 kB / 1.171 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.7351, allocations: 3.984 kB / 1.171 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.656e-05/0.7351, allocations: 4 kB / 1.171 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.111e-05/0.7351, allocations: 7.938 kB / 1.171 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002072/0.7354, allocations: 87.94 kB / 1.171 GB, free: 14.49 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007671/0.7361, allocations: 0.6364 MB / 1.172 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002138/0.7364, allocations: 58.5 kB / 1.172 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.173e-05/0.7364, allocations: 28.91 kB / 1.172 GB, free: 13.7 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.324e-05/0.7365, allocations: 4 kB / 1.172 GB, free: 13.69 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001797/0.7367, allocations: 146.9 kB / 1.172 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.7367, allocations: 4 kB / 1.172 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7): time 0.0003427/0.737, allocations: 163.2 kB / 1.172 GB, free: 13.35 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.289e-05/0.7371, allocations: 132.5 kB / 1.172 GB, free: 13.19 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001448/0.7372, allocations: 179.4 kB / 1.172 GB, free: 13 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.94e-05/0.7373, allocations: 33.7 kB / 1.173 GB, free: 12.96 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.918e-05/0.7373, allocations: 144 kB / 1.173 GB, free: 12.82 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.037e-05/0.7374, allocations: 15.91 kB / 1.173 GB, free: 12.8 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.84e-05/0.7374, allocations: 41.66 kB / 1.173 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 9.632e-05/0.7375, allocations: 322.8 kB / 1.173 GB, free: 12.43 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.072e-05/0.7376, allocations: 35.98 kB / 1.173 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001255/0.7378, allocations: 115.6 kB / 1.173 GB, free: 12.25 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002386/0.738, allocations: 238.3 kB / 1.173 GB, free: 11.96 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.738, allocations: 0 / 1.173 GB, free: 11.96 MB / 0.9044 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003399/0.7384, allocations: 244.7 kB / 1.174 GB, free: 11.71 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 4.315e-05/0.7384, allocations: 71.28 kB / 1.174 GB, free: 11.62 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.7384, allocations: 4 kB / 1.174 GB, free: 11.62 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.7385, allocations: 0 / 1.174 GB, free: 11.62 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001135/0.7386, allocations: 31.97 kB / 1.174 GB, free: 11.59 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.7386, allocations: 8.25 kB / 1.174 GB, free: 11.58 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001272/0.7387, allocations: 23.89 kB / 1.174 GB, free: 11.56 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.105e-05/0.7388, allocations: 12 kB / 1.174 GB, free: 11.55 MB / 0.9044 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.0001209/0.7389, allocations: 163.4 kB / 1.174 GB, free: 11.37 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.12e-05/0.7389, allocations: 15.89 kB / 1.174 GB, free: 11.36 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.157e-05/0.739, allocations: 17.39 kB / 1.174 GB, free: 11.34 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.739, allocations: 0 / 1.174 GB, free: 11.34 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.739, allocations: 4 kB / 1.174 GB, free: 11.33 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.739, allocations: 4 kB / 1.174 GB, free: 11.33 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001635/0.7391, allocations: 221.5 kB / 1.174 GB, free: 11.06 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.7392, allocations: 0 / 1.174 GB, free: 11.06 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.056e-05/0.7392, allocations: 11.98 kB / 1.174 GB, free: 11.05 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/0.7393, allocations: 3.938 kB / 1.174 GB, free: 11.05 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.404e-05/0.7393, allocations: 4 kB / 1.174 GB, free: 11.04 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.7393, allocations: 0 / 1.174 GB, free: 11.04 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.7393, allocations: 0 / 1.174 GB, free: 11.04 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003834/0.7397, allocations: 210.7 kB / 1.174 GB, free: 10.81 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.349e-05/0.7397, allocations: 89.05 kB / 1.174 GB, free: 10.71 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.017e-05/0.7398, allocations: 7.938 kB / 1.174 GB, free: 10.7 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.918e-05/0.7399, allocations: 7.984 kB / 1.174 GB, free: 10.69 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.596e-05/0.7399, allocations: 15.92 kB / 1.174 GB, free: 10.68 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.418e-06/0.7399, allocations: 4 kB / 1.175 GB, free: 10.67 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001097/0.7401, allocations: 140.8 kB / 1.175 GB, free: 10.54 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7401, allocations: 0 / 1.175 GB, free: 10.54 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002438/0.7403, allocations: 40 kB / 1.175 GB, free: 10.5 MB / 0.9044 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.0006237/0.7409, allocations: 0.7589 MB / 1.175 GB, free: 9.703 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0003072/0.7413, allocations: 219.2 kB / 1.176 GB, free: 9.465 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.7413, allocations: 4 kB / 1.176 GB, free: 9.461 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001254/0.7414, allocations: 107.3 kB / 1.176 GB, free: 9.344 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002217/0.7416, allocations: 16 kB / 1.176 GB, free: 9.328 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002065/0.7437, allocations: 1.954 MB / 1.178 GB, free: 7.219 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002601/0.744, allocations: 0.7196 MB / 1.178 GB, free: 6.473 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 6.936e-05/0.7441, allocations: 20.62 kB / 1.178 GB, free: 6.449 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.389e-05/0.7441, allocations: 39.42 kB / 1.178 GB, free: 6.41 MB / 0.9044 GB Notification: Performance of SimCode: time 2.41e-07/0.7441, allocations: 0 / 1.178 GB, free: 6.41 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02012/0.7643, allocations: 3.124 MB / 1.181 GB, free: 3.395 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.434/8.198, allocations: 5.844 kB / 1.181 GB, free: 3.391 MB / 0.9044 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