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.007843/0.007844, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.00189/0.00189, allocations: 199.1 kB / 16.67 MB, free: 5.52 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.328/1.328, allocations: 222.9 MB / 240.4 MB, free: 15.18 MB / 206.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.249/2.249, allocations: 390.2 MB / 0.6648 GB, free: 0.6797 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001541, allocations: 63.91 kB / 0.9504 GB, free: 8.199 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7337/0.7353, allocations: 140.4 MB / 1.087 GB, free: 5.293 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.00315/0.7385, allocations: 2.304 MB / 1.09 GB, free: 3.723 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001156/0.7397, allocations: 0.7745 MB / 1.09 GB, free: 3.191 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.602e-05/0.7398, allocations: 6.156 kB / 1.09 GB, free: 3.188 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0005873/0.7404, allocations: 143.5 kB / 1.091 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001783/0.7406, allocations: 64.14 kB / 1.091 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001652/0.7407, allocations: 56.62 kB / 1.091 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002267/0.741, allocations: 160.5 kB / 1.091 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002546/0.7412, allocations: 100.7 kB / 1.091 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001257/0.7414, allocations: 66.14 kB / 1.091 GB, free: 2.879 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001549/0.7415, allocations: 73.03 kB / 1.091 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.183e-05/0.7416, allocations: 15.53 kB / 1.091 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001303/0.7417, allocations: 56.78 kB / 1.091 GB, free: 2.82 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 6.373e-05/0.7418, allocations: 35.59 kB / 1.091 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.258e-05/0.7419, allocations: 64.22 kB / 1.091 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002771/0.7421, allocations: 170.6 kB / 1.091 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.7422, allocations: 1.484 kB / 1.091 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.463e-06/0.7422, allocations: 0 / 1.091 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.043e-05/0.7422, allocations: 0.7812 kB / 1.091 GB, free: 2.699 MB / 0.8575 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.00064/0.7428, allocations: 499.6 kB / 1.092 GB, free: 2.215 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.7429, allocations: 9.406 kB / 1.092 GB, free: 2.215 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.624e-05/0.7429, allocations: 42.62 kB / 1.092 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000203/0.7431, allocations: 29.62 kB / 1.092 GB, free: 2.16 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001882/0.7433, allocations: 211 kB / 1.092 GB, free: 1.941 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.557e-05/0.7434, allocations: 35.89 kB / 1.092 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.38e-05/0.7434, allocations: 15.72 kB / 1.092 GB, free: 1.898 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002928/0.7437, allocations: 155.5 kB / 1.092 GB, free: 1.801 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.7437, allocations: 0 / 1.092 GB, free: 1.801 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.689e-05/0.7438, allocations: 6 kB / 1.092 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.364e-05/0.7438, allocations: 8.641 kB / 1.092 GB, free: 1.793 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001971/0.744, allocations: 91.3 kB / 1.092 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007259/0.7447, allocations: 0.6334 MB / 1.093 GB, free: 1.207 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002299/0.745, allocations: 56.56 kB / 1.093 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.86e-05/0.745, allocations: 28.5 kB / 1.093 GB, free: 1.156 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.504e-05/0.7451, allocations: 1.031 kB / 1.093 GB, free: 1.156 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001958/0.7453, allocations: 149.8 kB / 1.093 GB, free: 1.027 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.7453, allocations: 3.938 kB / 1.093 GB, free: 1.023 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0003839/0.7457, allocations: 162.2 kB / 1.093 GB, free: 0.9258 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.05e-05/0.7457, allocations: 131.9 kB / 1.094 GB, free: 0.7695 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001583/0.7459, allocations: 192.7 kB / 1.094 GB, free: 0.6328 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.326e-05/0.7459, allocations: 26.8 kB / 1.094 GB, free: 0.6016 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.721e-05/0.746, allocations: 143.2 kB / 1.094 GB, free: 480 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.152e-05/0.746, allocations: 21.77 kB / 1.094 GB, free: 464 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.958e-05/0.7461, allocations: 38.05 kB / 1.094 GB, free: 436 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.156e-05/0.7461, allocations: 327.5 kB / 1.094 GB, free: 108 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.504e-05/0.7462, allocations: 34.17 kB / 1.094 GB, free: 100 kB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001286/0.7464, allocations: 120.5 kB / 1.094 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002574/0.7466, allocations: 233.2 kB / 1.095 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.7466, allocations: 0.75 kB / 1.095 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003819/0.747, allocations: 244.1 kB / 1.095 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 5.13e-05/0.7471, allocations: 68.61 kB / 1.095 GB, free: 15.54 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.7471, allocations: 2.984 kB / 1.095 GB, free: 15.54 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.7471, allocations: 3.75 kB / 1.095 GB, free: 15.54 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001298/0.7473, allocations: 30.59 kB / 1.095 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.373e-05/0.7473, allocations: 8.344 kB / 1.095 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001474/0.7474, allocations: 31.09 kB / 1.095 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.737e-05/0.7475, allocations: 6.969 kB / 1.095 GB, free: 15.51 MB / 0.8731 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.0001413/0.7476, allocations: 165.2 kB / 1.095 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.959e-05/0.7476, allocations: 20.38 kB / 1.095 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.179e-05/0.7477, allocations: 14.33 kB / 1.095 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.7477, allocations: 0.75 kB / 1.095 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.7477, allocations: 1.578 kB / 1.095 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.7477, allocations: 0 / 1.095 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001879/0.7479, allocations: 209.5 kB / 1.095 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.7479, allocations: 5.422 kB / 1.095 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.281e-05/0.748, allocations: 9.969 kB / 1.095 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.18e-06/0.748, allocations: 4.688 kB / 1.095 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.38e-05/0.748, allocations: 2.656 kB / 1.095 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.748, allocations: 0.9062 kB / 1.095 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.748, allocations: 0 / 1.095 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004093/0.7485, allocations: 215.7 kB / 1.096 GB, free: 14.97 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 5.124e-05/0.7485, allocations: 93.8 kB / 1.096 GB, free: 14.87 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.564e-05/0.7486, allocations: 15.12 kB / 1.096 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.878e-05/0.7487, allocations: 9.938 kB / 1.096 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.159e-05/0.7487, allocations: 10.3 kB / 1.096 GB, free: 14.85 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.074e-05/0.7488, allocations: 7.047 kB / 1.096 GB, free: 14.85 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001177/0.7489, allocations: 130.6 kB / 1.096 GB, free: 14.76 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.81e-07/0.7489, allocations: 0 / 1.096 GB, free: 14.76 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002663/0.7492, allocations: 31.5 kB / 1.096 GB, free: 14.75 MB / 0.8731 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.0006278/0.7498, allocations: 0.7576 MB / 1.097 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003365/0.7501, allocations: 215.8 kB / 1.097 GB, free: 13.91 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.7502, allocations: 0.625 kB / 1.097 GB, free: 13.91 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001386/0.7503, allocations: 112.2 kB / 1.097 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002366/0.7505, allocations: 19.59 kB / 1.097 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002256/0.7528, allocations: 1.951 MB / 1.099 GB, free: 12.23 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002615/0.7531, allocations: 0.7174 MB / 1.1 GB, free: 11.52 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 8.179e-05/0.7532, allocations: 21.64 kB / 1.1 GB, free: 11.52 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.683e-05/0.7533, allocations: 40.89 kB / 1.1 GB, free: 11.48 MB / 0.8731 GB Notification: Performance of SimCode: time 2.3e-07/0.7533, allocations: 0 / 1.1 GB, free: 11.48 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02029/0.7736, allocations: 3.121 MB / 1.103 GB, free: 10.98 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.474/8.248, allocations: 12.62 kB / 1.103 GB, free: 10.97 MB / 0.8731 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