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.004734/0.004734, allocations: 103.6 kB / 15.74 MB, free: 6.043 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.001259/0.001259, allocations: 202.5 kB / 16.68 MB, free: 5.965 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.458/1.458, allocations: 222.9 MB / 240.4 MB, free: 4.305 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.679/2.679, allocations: 437 MB / 0.7105 GB, free: 4.996 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001918/0.001918, allocations: 59.91 kB / 1.018 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2901/0.292, allocations: 151.6 MB / 1.166 GB, free: 7.352 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.00363/0.2957, allocations: 2.3 MB / 1.168 GB, free: 5.031 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001249/0.297, allocations: 0.7907 MB / 1.169 GB, free: 4.234 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.902e-05/0.2971, allocations: 4 kB / 1.169 GB, free: 4.23 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0005613/0.2976, allocations: 159.2 kB / 1.169 GB, free: 4.074 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.00017/0.2978, allocations: 59.67 kB / 1.169 GB, free: 4.016 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001537/0.298, allocations: 51.88 kB / 1.169 GB, free: 3.965 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002394/0.2982, allocations: 163.5 kB / 1.17 GB, free: 3.805 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002432/0.2985, allocations: 93.33 kB / 1.17 GB, free: 3.711 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001125/0.2986, allocations: 63.78 kB / 1.17 GB, free: 3.648 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001554/0.2988, allocations: 75.62 kB / 1.17 GB, free: 3.574 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.331e-05/0.2988, allocations: 8 kB / 1.17 GB, free: 3.566 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001239/0.2989, allocations: 59.88 kB / 1.17 GB, free: 3.508 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 5.783e-05/0.299, allocations: 35.91 kB / 1.17 GB, free: 3.473 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 9.11e-05/0.2991, allocations: 67.66 kB / 1.17 GB, free: 3.406 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002587/0.2993, allocations: 179.2 kB / 1.17 GB, free: 3.23 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.2994, allocations: 0 / 1.17 GB, free: 3.23 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.072e-06/0.2994, allocations: 0 / 1.17 GB, free: 3.23 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.34e-06/0.2994, allocations: 0 / 1.17 GB, free: 3.23 MB / 0.92 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.0007261/0.3001, allocations: 494.3 kB / 1.171 GB, free: 2.688 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.3001, allocations: 12.03 kB / 1.171 GB, free: 2.676 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.179e-05/0.3002, allocations: 50.73 kB / 1.171 GB, free: 2.617 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001927/0.3004, allocations: 24.83 kB / 1.171 GB, free: 2.594 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002669/0.3007, allocations: 220.1 kB / 1.171 GB, free: 2.34 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.875e-05/0.3007, allocations: 30.45 kB / 1.171 GB, free: 2.305 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.491e-05/0.3008, allocations: 15.94 kB / 1.171 GB, free: 2.289 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002871/0.3011, allocations: 142.2 kB / 1.171 GB, free: 2.137 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.3011, allocations: 4 kB / 1.171 GB, free: 2.133 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.984e-05/0.3011, allocations: 11.98 kB / 1.171 GB, free: 2.121 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.842e-05/0.3011, allocations: 4 kB / 1.171 GB, free: 2.117 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002009/0.3013, allocations: 83.89 kB / 1.171 GB, free: 2.035 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008625/0.3022, allocations: 0.6442 MB / 1.172 GB, free: 1.328 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002259/0.3025, allocations: 58.61 kB / 1.172 GB, free: 1.262 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.125e-05/0.3025, allocations: 20.86 kB / 1.172 GB, free: 1.238 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.451e-05/0.3026, allocations: 11.88 kB / 1.172 GB, free: 1.227 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002061/0.3028, allocations: 146.9 kB / 1.172 GB, free: 1.059 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.463e-06/0.3028, allocations: 0 / 1.172 GB, free: 1.059 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0003948/0.3032, allocations: 159.2 kB / 1.172 GB, free: 0.8906 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.711e-05/0.3033, allocations: 132.5 kB / 1.172 GB, free: 0.7305 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001802/0.3035, allocations: 182.3 kB / 1.172 GB, free: 0.543 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.123e-05/0.3035, allocations: 25.7 kB / 1.172 GB, free: 0.5117 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001029/0.3036, allocations: 152 kB / 1.173 GB, free: 364 kB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.544e-05/0.3036, allocations: 31.7 kB / 1.173 GB, free: 332 kB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.959e-05/0.3037, allocations: 45.67 kB / 1.173 GB, free: 280 kB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001523/0.3039, allocations: 322.8 kB / 1.173 GB, free: 15.95 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.846e-05/0.304, allocations: 39.97 kB / 1.173 GB, free: 15.91 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000149/0.3041, allocations: 107.7 kB / 1.173 GB, free: 15.77 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002705/0.3044, allocations: 226.4 kB / 1.173 GB, free: 15.5 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.3044, allocations: 0 / 1.173 GB, free: 15.5 MB / 0.9356 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003787/0.3048, allocations: 244.9 kB / 1.174 GB, free: 15.24 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 5.257e-05/0.3049, allocations: 71.27 kB / 1.174 GB, free: 15.16 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.3049, allocations: 0 / 1.174 GB, free: 15.16 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.3049, allocations: 4 kB / 1.174 GB, free: 15.16 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001232/0.305, allocations: 31.98 kB / 1.174 GB, free: 15.12 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.29e-05/0.3051, allocations: 11.94 kB / 1.174 GB, free: 15.11 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000132/0.3052, allocations: 23.88 kB / 1.174 GB, free: 15.09 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.698e-05/0.3052, allocations: 8 kB / 1.174 GB, free: 15.08 MB / 0.9356 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.0001406/0.3054, allocations: 168.1 kB / 1.174 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.681e-05/0.3054, allocations: 15.89 kB / 1.174 GB, free: 14.89 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.275e-05/0.3054, allocations: 17.39 kB / 1.174 GB, free: 14.87 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.3055, allocations: 0 / 1.174 GB, free: 14.87 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.3055, allocations: 0 / 1.174 GB, free: 14.87 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.3055, allocations: 0 / 1.174 GB, free: 14.87 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001935/0.3057, allocations: 209.6 kB / 1.174 GB, free: 14.62 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.3057, allocations: 7.984 kB / 1.174 GB, free: 14.61 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.541e-05/0.3058, allocations: 15.94 kB / 1.174 GB, free: 14.59 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.229e-06/0.3058, allocations: 7.938 kB / 1.174 GB, free: 14.59 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.25e-05/0.3058, allocations: 3.938 kB / 1.174 GB, free: 14.58 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.3058, allocations: 0 / 1.174 GB, free: 14.58 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.3058, allocations: 7.938 kB / 1.174 GB, free: 14.57 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003923/0.3062, allocations: 211.1 kB / 1.174 GB, free: 14.34 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.193e-05/0.3063, allocations: 97.06 kB / 1.174 GB, free: 14.23 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.146e-05/0.3063, allocations: 3.938 kB / 1.174 GB, free: 14.23 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.928e-05/0.3064, allocations: 12.06 kB / 1.174 GB, free: 14.21 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.627e-05/0.3065, allocations: 11.98 kB / 1.175 GB, free: 14.2 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.103e-05/0.3065, allocations: 4 kB / 1.175 GB, free: 14.2 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001235/0.3066, allocations: 140.3 kB / 1.175 GB, free: 14.06 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3066, allocations: 0 / 1.175 GB, free: 14.06 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002514/0.3069, allocations: 31.94 kB / 1.175 GB, free: 14.03 MB / 0.9356 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.000684/0.3076, allocations: 0.7585 MB / 1.175 GB, free: 13.24 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003414/0.3079, allocations: 218.6 kB / 1.176 GB, free: 13 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.308, allocations: 0 / 1.176 GB, free: 13 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001328/0.3081, allocations: 104.1 kB / 1.176 GB, free: 12.89 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002213/0.3083, allocations: 23.92 kB / 1.176 GB, free: 12.86 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002268/0.3106, allocations: 1.955 MB / 1.178 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003487/0.311, allocations: 0.7197 MB / 1.178 GB, free: 10.01 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 7.019e-05/0.311, allocations: 16.64 kB / 1.178 GB, free: 9.988 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.892e-05/0.3111, allocations: 35.42 kB / 1.178 GB, free: 9.953 MB / 0.9356 GB Notification: Performance of SimCode: time 2.6e-07/0.3111, allocations: 4 kB / 1.178 GB, free: 9.949 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02589/0.337, allocations: 3.123 MB / 1.181 GB, free: 6.938 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.994/8.331, allocations: 11.17 kB / 1.181 GB, free: 6.93 MB / 0.9356 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