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.004544/0.004544, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001079/0.001079, allocations: 197.3 kB / 16.67 MB, free: 5.934 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.308/1.308, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.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.384/2.384, allocations: 390.3 MB / 0.6648 GB, free: 256 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 63.19 kB / 0.9504 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2456/0.2469, allocations: 140.4 MB / 1.087 GB, free: 2.023 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003436/0.2504, allocations: 2.308 MB / 1.09 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00121/0.2516, allocations: 0.7715 MB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.074e-05/0.2517, allocations: 11.88 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0005561/0.2523, allocations: 151.3 kB / 1.091 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001857/0.2525, allocations: 63.61 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001682/0.2527, allocations: 55.88 kB / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002112/0.2529, allocations: 155.5 kB / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002334/0.2531, allocations: 101.3 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001238/0.2533, allocations: 71.7 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001393/0.2534, allocations: 67.73 kB / 1.091 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.377e-05/0.2534, allocations: 12 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001135/0.2536, allocations: 51.91 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.58e-05/0.2536, allocations: 39.89 kB / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.868e-05/0.2537, allocations: 71.59 kB / 1.091 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002389/0.254, allocations: 171.3 kB / 1.091 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.254, allocations: 0 / 1.091 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.353e-06/0.254, allocations: 0 / 1.091 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.039e-06/0.254, allocations: 0 / 1.091 GB, free: 13.92 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.0006591/0.2546, allocations: 0.4944 MB / 1.092 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.627e-05/0.2547, allocations: 12.03 kB / 1.092 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.468e-05/0.2547, allocations: 42.73 kB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002053/0.255, allocations: 24.88 kB / 1.092 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002402/0.2552, allocations: 212.1 kB / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.612e-05/0.2553, allocations: 34.45 kB / 1.092 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.193e-05/0.2553, allocations: 15.94 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002717/0.2556, allocations: 145.6 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.146e-06/0.2556, allocations: 3.938 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.701e-05/0.2556, allocations: 8 kB / 1.092 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.674e-05/0.2556, allocations: 4 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001901/0.2558, allocations: 83.94 kB / 1.092 GB, free: 12.72 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008/0.2566, allocations: 0.6403 MB / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002166/0.2569, allocations: 58.5 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.346e-05/0.257, allocations: 32.91 kB / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.019e-05/0.257, allocations: 0 / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001882/0.2572, allocations: 146.9 kB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.343e-06/0.2572, allocations: 0 / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0003564/0.2575, allocations: 167.1 kB / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.503e-05/0.2576, allocations: 132.5 kB / 1.094 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001547/0.2578, allocations: 186.6 kB / 1.094 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.076e-05/0.2578, allocations: 29.7 kB / 1.094 GB, free: 11.19 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.773e-05/0.2579, allocations: 140 kB / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.532e-05/0.2579, allocations: 27.8 kB / 1.094 GB, free: 11.02 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.063e-05/0.258, allocations: 45.7 kB / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.77e-05/0.2581, allocations: 322.8 kB / 1.094 GB, free: 10.64 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.627e-05/0.2582, allocations: 39.97 kB / 1.094 GB, free: 10.6 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001252/0.2583, allocations: 111 kB / 1.094 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000237/0.2586, allocations: 230.3 kB / 1.095 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.2586, allocations: 0 / 1.095 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003523/0.2589, allocations: 244.7 kB / 1.095 GB, free: 9.926 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.27e-05/0.259, allocations: 68.42 kB / 1.095 GB, free: 9.848 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/0.259, allocations: 7.938 kB / 1.095 GB, free: 9.84 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.259, allocations: 4 kB / 1.095 GB, free: 9.836 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001302/0.2592, allocations: 31.92 kB / 1.095 GB, free: 9.805 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.344e-06/0.2592, allocations: 4.312 kB / 1.095 GB, free: 9.801 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001443/0.2593, allocations: 28.19 kB / 1.095 GB, free: 9.773 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.363e-05/0.2594, allocations: 8 kB / 1.095 GB, free: 9.766 MB / 0.8575 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.0001167/0.2595, allocations: 163.5 kB / 1.095 GB, free: 9.59 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.76e-05/0.2595, allocations: 23.84 kB / 1.095 GB, free: 9.566 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.548e-05/0.2595, allocations: 9.406 kB / 1.095 GB, free: 9.559 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.2595, allocations: 0 / 1.095 GB, free: 9.559 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.2596, allocations: 0 / 1.095 GB, free: 9.559 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.2596, allocations: 4.047 kB / 1.095 GB, free: 9.555 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001631/0.2597, allocations: 221.6 kB / 1.095 GB, free: 9.289 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.2597, allocations: 4 kB / 1.095 GB, free: 9.285 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.177e-05/0.2598, allocations: 11.98 kB / 1.095 GB, free: 9.273 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.2598, allocations: 7.938 kB / 1.095 GB, free: 9.266 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.177e-05/0.2599, allocations: 0 / 1.095 GB, free: 9.266 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.816e-06/0.2599, allocations: 3.984 kB / 1.096 GB, free: 9.262 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2599, allocations: 0 / 1.096 GB, free: 9.262 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003685/0.2602, allocations: 218.6 kB / 1.096 GB, free: 9.023 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.452e-05/0.2603, allocations: 89.06 kB / 1.096 GB, free: 8.918 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.128e-05/0.2603, allocations: 15.95 kB / 1.096 GB, free: 8.902 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.543e-05/0.2604, allocations: 8 kB / 1.096 GB, free: 8.895 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.597e-05/0.2605, allocations: 7.984 kB / 1.096 GB, free: 8.887 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.097e-05/0.2605, allocations: 4 kB / 1.096 GB, free: 8.883 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 9.952e-05/0.2606, allocations: 132.3 kB / 1.096 GB, free: 8.754 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2606, allocations: 0 / 1.096 GB, free: 8.754 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002512/0.2609, allocations: 35.89 kB / 1.096 GB, free: 8.719 MB / 0.8575 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.0005946/0.2615, allocations: 0.7546 MB / 1.097 GB, free: 7.93 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000292/0.2618, allocations: 214.6 kB / 1.097 GB, free: 7.695 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.2618, allocations: 4.688 kB / 1.097 GB, free: 7.691 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001262/0.2619, allocations: 111.3 kB / 1.097 GB, free: 7.57 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000248/0.2622, allocations: 19.91 kB / 1.097 GB, free: 7.551 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002215/0.2644, allocations: 1.948 MB / 1.099 GB, free: 5.449 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002839/0.2647, allocations: 0.7232 MB / 1.1 GB, free: 4.699 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 7.647e-05/0.2648, allocations: 24.62 kB / 1.1 GB, free: 4.672 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.482e-05/0.2649, allocations: 35.42 kB / 1.1 GB, free: 4.637 MB / 0.8575 GB Notification: Performance of SimCode: time 2.2e-07/0.2649, allocations: 0 / 1.1 GB, free: 4.637 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02703/0.2919, allocations: 3.132 MB / 1.103 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.416/7.708, allocations: 4.328 kB / 1.103 GB, free: 1.613 MB / 0.8575 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