Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_11_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.009572/0.009572, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.002163/0.002163, allocations: 201 kB / 16.68 MB, free: 5.969 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.413/1.413, 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 11.1.0-maint.11.x/package.mo): time 2.714/2.714, allocations: 469.8 MB / 0.7425 GB, free: 7.328 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001824/0.001824, allocations: 63.91 kB / 1.065 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3026/0.3044, allocations: 159.1 MB / 1.22 GB, free: 14.34 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003738/0.3082, allocations: 2.325 MB / 1.222 GB, free: 12 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001274/0.3095, allocations: 0.7752 MB / 1.223 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.891e-05/0.3096, allocations: 0 / 1.223 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0005662/0.3102, allocations: 159.3 kB / 1.223 GB, free: 11.06 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001784/0.3104, allocations: 63.67 kB / 1.223 GB, free: 11 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001572/0.3106, allocations: 51.88 kB / 1.223 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002407/0.3108, allocations: 159.5 kB / 1.224 GB, free: 10.79 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002587/0.3111, allocations: 97.05 kB / 1.224 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001207/0.3112, allocations: 67.7 kB / 1.224 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001472/0.3114, allocations: 63.7 kB / 1.224 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.055e-05/0.3114, allocations: 19.98 kB / 1.224 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001243/0.3116, allocations: 51.89 kB / 1.224 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 6.942e-05/0.3116, allocations: 35.91 kB / 1.224 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 8.536e-05/0.3117, allocations: 67.66 kB / 1.224 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002658/0.312, allocations: 171.3 kB / 1.224 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.312, allocations: 0 / 1.224 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.483e-06/0.312, allocations: 0 / 1.224 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.56e-06/0.312, allocations: 0 / 1.224 GB, free: 10.23 MB / 0.9825 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.0007046/0.3127, allocations: 494.3 kB / 1.225 GB, free: 9.684 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.3128, allocations: 16.03 kB / 1.225 GB, free: 9.668 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.041e-05/0.3128, allocations: 46.73 kB / 1.225 GB, free: 9.613 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001935/0.313, allocations: 24.83 kB / 1.225 GB, free: 9.59 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002431/0.3133, allocations: 221.9 kB / 1.225 GB, free: 9.336 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.062e-05/0.3134, allocations: 38.45 kB / 1.225 GB, free: 9.293 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.994e-05/0.3134, allocations: 15.94 kB / 1.225 GB, free: 9.277 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002793/0.3137, allocations: 148.1 kB / 1.225 GB, free: 9.121 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.236e-06/0.3137, allocations: 4 kB / 1.225 GB, free: 9.117 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.581e-05/0.3137, allocations: 4 kB / 1.225 GB, free: 9.113 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.719e-05/0.3137, allocations: 8 kB / 1.225 GB, free: 9.105 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002189/0.314, allocations: 83.89 kB / 1.225 GB, free: 9.023 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000851/0.3148, allocations: 0.6403 MB / 1.226 GB, free: 8.316 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002154/0.3151, allocations: 54.55 kB / 1.226 GB, free: 8.254 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.738e-05/0.3151, allocations: 32.91 kB / 1.226 GB, free: 8.219 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.496e-05/0.3152, allocations: 3.938 kB / 1.226 GB, free: 8.215 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002085/0.3154, allocations: 154.8 kB / 1.226 GB, free: 8.039 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.493e-06/0.3154, allocations: 0 / 1.226 GB, free: 8.039 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0004083/0.3158, allocations: 155.2 kB / 1.226 GB, free: 7.875 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.616e-05/0.3159, allocations: 140.5 kB / 1.226 GB, free: 7.707 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001732/0.3161, allocations: 182.8 kB / 1.226 GB, free: 7.52 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.162e-05/0.3161, allocations: 29.7 kB / 1.227 GB, free: 7.484 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001037/0.3162, allocations: 144 kB / 1.227 GB, free: 7.336 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.285e-05/0.3163, allocations: 23.83 kB / 1.227 GB, free: 7.312 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.335e-05/0.3163, allocations: 41.66 kB / 1.227 GB, free: 7.266 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001394/0.3165, allocations: 326.8 kB / 1.227 GB, free: 6.938 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.477e-05/0.3166, allocations: 35.98 kB / 1.227 GB, free: 6.902 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001376/0.3167, allocations: 105.4 kB / 1.227 GB, free: 6.766 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002844/0.317, allocations: 230.4 kB / 1.227 GB, free: 6.488 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.067e-06/0.317, allocations: 0 / 1.227 GB, free: 6.488 MB / 0.9825 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003619/0.3174, allocations: 244.8 kB / 1.228 GB, free: 6.23 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 5.451e-05/0.3174, allocations: 71.22 kB / 1.228 GB, free: 6.148 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.994e-06/0.3175, allocations: 4 kB / 1.228 GB, free: 6.145 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.3175, allocations: 4 kB / 1.228 GB, free: 6.141 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001153/0.3176, allocations: 31.98 kB / 1.228 GB, free: 6.109 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.348e-06/0.3176, allocations: 3.938 kB / 1.228 GB, free: 6.105 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001317/0.3177, allocations: 23.88 kB / 1.228 GB, free: 6.082 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.568e-05/0.3178, allocations: 8.219 kB / 1.228 GB, free: 6.074 MB / 0.9825 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.0001502/0.3179, allocations: 175.5 kB / 1.228 GB, free: 5.887 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.898e-05/0.318, allocations: 19.84 kB / 1.228 GB, free: 5.867 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.238e-05/0.318, allocations: 17.39 kB / 1.228 GB, free: 5.844 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.318, allocations: 0 / 1.228 GB, free: 5.844 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.318, allocations: 0 / 1.228 GB, free: 5.844 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-06/0.318, allocations: 3.938 kB / 1.228 GB, free: 5.84 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002517/0.3183, allocations: 209.6 kB / 1.228 GB, free: 5.586 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.3183, allocations: 0 / 1.228 GB, free: 5.586 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.638e-05/0.3184, allocations: 11.94 kB / 1.228 GB, free: 5.574 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.636e-06/0.3184, allocations: 7.938 kB / 1.228 GB, free: 5.566 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.356e-05/0.3184, allocations: 8 kB / 1.228 GB, free: 5.559 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.3184, allocations: 0 / 1.228 GB, free: 5.559 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.148e-05/0.3185, allocations: 3.984 kB / 1.228 GB, free: 5.555 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003904/0.3189, allocations: 218.7 kB / 1.228 GB, free: 5.316 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.199e-05/0.3189, allocations: 81.16 kB / 1.228 GB, free: 5.219 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.045e-05/0.319, allocations: 7.938 kB / 1.228 GB, free: 5.211 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.201e-05/0.3191, allocations: 20.03 kB / 1.228 GB, free: 5.191 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.39e-05/0.3191, allocations: 8 kB / 1.229 GB, free: 5.184 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.805e-06/0.3191, allocations: 0 / 1.229 GB, free: 5.184 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001112/0.3192, allocations: 132.3 kB / 1.229 GB, free: 5.055 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3193, allocations: 4 kB / 1.229 GB, free: 5.051 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002351/0.3195, allocations: 31.95 kB / 1.229 GB, free: 5.02 MB / 0.9825 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.0006605/0.3202, allocations: 0.7507 MB / 1.229 GB, free: 4.234 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000319/0.3205, allocations: 214.6 kB / 1.23 GB, free: 4 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3205, allocations: 0 / 1.23 GB, free: 4 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001331/0.3206, allocations: 104.1 kB / 1.23 GB, free: 3.887 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002131/0.3209, allocations: 27.91 kB / 1.23 GB, free: 3.859 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002195/0.3231, allocations: 1.967 MB / 1.232 GB, free: 1.738 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003275/0.3234, allocations: 0.7119 MB / 1.232 GB, free: 1 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.957e-05/0.3235, allocations: 16.64 kB / 1.232 GB, free: 0.9844 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.428e-05/0.3236, allocations: 39.42 kB / 1.232 GB, free: 0.9453 MB / 0.9825 GB Notification: Performance of SimCode: time 3.01e-07/0.3236, allocations: 4 kB / 1.232 GB, free: 0.9414 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02478/0.3483, allocations: 3.14 MB / 1.235 GB, free: 13.91 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.807/8.155, allocations: 17.38 kB / 1.235 GB, free: 13.9 MB / 0.9981 GB (rm -f Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches