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.007556/0.007556, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001824/0.001824, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.36/1.36, 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.435/2.435, allocations: 437 MB / 0.7105 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 63.91 kB / 1.018 GB, free: 9.941 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7483/0.7496, allocations: 151.6 MB / 1.166 GB, free: 3.781 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003744/0.7534, allocations: 2.316 MB / 1.168 GB, free: 1.453 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001266/0.7547, allocations: 0.7907 MB / 1.169 GB, free: 0.6562 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001059/0.7548, allocations: 0 / 1.169 GB, free: 0.6562 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0005874/0.7554, allocations: 143.4 kB / 1.169 GB, free: 0.5156 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001801/0.7556, allocations: 63.59 kB / 1.169 GB, free: 464 kB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001559/0.7558, allocations: 55.88 kB / 1.169 GB, free: 408 kB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002042/0.756, allocations: 155.5 kB / 1.17 GB, free: 252 kB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002222/0.7562, allocations: 93.05 kB / 1.17 GB, free: 156 kB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001066/0.7564, allocations: 71.7 kB / 1.17 GB, free: 84 kB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000142/0.7565, allocations: 83.66 kB / 1.17 GB, free: 0 / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 3.953e-05/0.7566, allocations: 12.05 kB / 1.17 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001106/0.7567, allocations: 51.84 kB / 1.17 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 5.562e-05/0.7567, allocations: 35.91 kB / 1.17 GB, free: 15.9 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 7.2e-05/0.7568, allocations: 63.67 kB / 1.17 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.000239/0.7571, allocations: 171 kB / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.7571, allocations: 0 / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.774e-06/0.7571, allocations: 0 / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 9.758e-06/0.7571, allocations: 0 / 1.17 GB, free: 15.68 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.0006733/0.7578, allocations: 0.4944 MB / 1.171 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.7578, allocations: 12.92 kB / 1.171 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.433e-05/0.7579, allocations: 42.75 kB / 1.171 GB, free: 15.06 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001904/0.7581, allocations: 28.77 kB / 1.171 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002285/0.7583, allocations: 214.2 kB / 1.171 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.256e-05/0.7584, allocations: 38.44 kB / 1.171 GB, free: 14.74 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.965e-05/0.7584, allocations: 15.94 kB / 1.171 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002702/0.7587, allocations: 152.1 kB / 1.171 GB, free: 14.56 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.7587, allocations: 0 / 1.171 GB, free: 14.56 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.487e-05/0.7587, allocations: 4 kB / 1.171 GB, free: 14.56 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.708e-05/0.7587, allocations: 7.938 kB / 1.171 GB, free: 14.55 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001944/0.7589, allocations: 91.88 kB / 1.171 GB, free: 14.46 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008154/0.7598, allocations: 0.6364 MB / 1.172 GB, free: 13.76 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002292/0.76, allocations: 54.62 kB / 1.172 GB, free: 13.7 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.836e-05/0.7601, allocations: 28.84 kB / 1.172 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.473e-05/0.7601, allocations: 0 / 1.172 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001947/0.7603, allocations: 156.8 kB / 1.172 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 1.512e-06/0.7603, allocations: 3.938 kB / 1.172 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7): time 0.0003709/0.7607, allocations: 159.2 kB / 1.172 GB, free: 13.32 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.473e-05/0.7608, allocations: 128.5 kB / 1.172 GB, free: 13.16 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001597/0.761, allocations: 187.4 kB / 1.172 GB, free: 12.97 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.544e-05/0.761, allocations: 25.7 kB / 1.172 GB, free: 12.94 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 8.339e-05/0.7611, allocations: 148 kB / 1.173 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.449e-05/0.7611, allocations: 15.91 kB / 1.173 GB, free: 12.77 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.523e-05/0.7612, allocations: 41.66 kB / 1.173 GB, free: 12.73 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 9.915e-05/0.7613, allocations: 326.8 kB / 1.173 GB, free: 12.4 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.187e-05/0.7614, allocations: 35.97 kB / 1.173 GB, free: 12.36 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001312/0.7615, allocations: 113.3 kB / 1.173 GB, free: 12.22 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002299/0.7618, allocations: 230.4 kB / 1.173 GB, free: 11.94 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.7618, allocations: 0 / 1.173 GB, free: 11.94 MB / 0.9044 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003499/0.7621, allocations: 248.7 kB / 1.174 GB, free: 11.68 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 4.356e-05/0.7622, allocations: 67.28 kB / 1.174 GB, free: 11.6 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.78e-06/0.7622, allocations: 0 / 1.174 GB, free: 11.6 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.818e-05/0.7622, allocations: 7.984 kB / 1.174 GB, free: 11.59 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001214/0.7623, allocations: 31.92 kB / 1.174 GB, free: 11.56 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.7623, allocations: 4 kB / 1.174 GB, free: 11.56 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001361/0.7625, allocations: 28.2 kB / 1.174 GB, free: 11.53 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.636e-05/0.7625, allocations: 15.92 kB / 1.174 GB, free: 11.52 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.0001233/0.7626, allocations: 165.1 kB / 1.174 GB, free: 11.34 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.681e-05/0.7627, allocations: 19.88 kB / 1.174 GB, free: 11.32 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.965e-05/0.7627, allocations: 13.41 kB / 1.174 GB, free: 11.3 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.7627, allocations: 0 / 1.174 GB, free: 11.3 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.7627, allocations: 0 / 1.174 GB, free: 11.3 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.7627, allocations: 0 / 1.174 GB, free: 11.3 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001604/0.7629, allocations: 213.5 kB / 1.174 GB, free: 11.05 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.7629, allocations: 8 kB / 1.174 GB, free: 11.04 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.601e-05/0.763, allocations: 15.98 kB / 1.174 GB, free: 11.02 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.508e-06/0.763, allocations: 3.938 kB / 1.174 GB, free: 11.02 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.291e-05/0.763, allocations: 48 / 1.174 GB, free: 11.02 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.763, allocations: 0 / 1.174 GB, free: 11.02 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.878e-06/0.763, allocations: 7.984 kB / 1.174 GB, free: 11.01 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003627/0.7634, allocations: 211 kB / 1.174 GB, free: 10.78 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.813e-05/0.7635, allocations: 97.11 kB / 1.174 GB, free: 10.67 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.694e-05/0.7635, allocations: 3.938 kB / 1.174 GB, free: 10.66 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.456e-05/0.7636, allocations: 11.98 kB / 1.174 GB, free: 10.65 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.717e-05/0.7637, allocations: 11.98 kB / 1.175 GB, free: 10.64 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.023e-05/0.7637, allocations: 4 kB / 1.175 GB, free: 10.64 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 9.743e-05/0.7638, allocations: 136.8 kB / 1.175 GB, free: 10.5 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.3e-07/0.7638, allocations: 0 / 1.175 GB, free: 10.5 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002521/0.7641, allocations: 31.94 kB / 1.175 GB, free: 10.47 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.0005781/0.7647, allocations: 0.7662 MB / 1.175 GB, free: 9.672 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002941/0.765, allocations: 215.3 kB / 1.176 GB, free: 9.438 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.765, allocations: 0 / 1.176 GB, free: 9.438 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001202/0.7651, allocations: 111.4 kB / 1.176 GB, free: 9.316 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002226/0.7653, allocations: 12 kB / 1.176 GB, free: 9.305 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002069/0.7674, allocations: 1.961 MB / 1.178 GB, free: 7.188 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002795/0.7677, allocations: 0.7158 MB / 1.178 GB, free: 6.445 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 7.862e-05/0.7678, allocations: 20.62 kB / 1.178 GB, free: 6.422 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.497e-05/0.7679, allocations: 43.36 kB / 1.178 GB, free: 6.379 MB / 0.9044 GB Notification: Performance of SimCode: time 3.91e-07/0.7679, allocations: 4 kB / 1.178 GB, free: 6.375 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02095/0.7888, allocations: 3.119 MB / 1.181 GB, free: 3.367 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.46/8.249, allocations: 7.969 kB / 1.181 GB, free: 3.363 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