Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_latest_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.001752/0.001752, allocations: 108 kB / 15.61 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001998/0.001998, allocations: 191.9 kB / 16.53 MB, free: 6.668 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.383/1.383, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.707/2.707, allocations: 461.9 MB / 0.7346 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 63.3 kB / 0.8992 GB, free: 36.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3111/0.3124, allocations: 157.4 MB / 1.053 GB, free: 8.258 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.004449/0.3169, allocations: 2.311 MB / 1.055 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001528/0.3184, allocations: 0.7869 MB / 1.056 GB, free: 5.141 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001682/0.3186, allocations: 0 / 1.056 GB, free: 5.141 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0008071/0.3195, allocations: 155.3 kB / 1.056 GB, free: 4.988 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002841/0.3197, allocations: 63.66 kB / 1.056 GB, free: 4.926 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002194/0.32, allocations: 51.81 kB / 1.056 GB, free: 4.875 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002804/0.3203, allocations: 163.5 kB / 1.056 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000299/0.3206, allocations: 97.33 kB / 1.056 GB, free: 4.621 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001611/0.3207, allocations: 71.7 kB / 1.056 GB, free: 4.551 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002014/0.321, allocations: 67.7 kB / 1.057 GB, free: 4.484 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.011e-05/0.321, allocations: 19.98 kB / 1.057 GB, free: 4.465 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001505/0.3212, allocations: 47.91 kB / 1.057 GB, free: 4.418 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.584e-05/0.3212, allocations: 35.89 kB / 1.057 GB, free: 4.383 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.24e-05/0.3213, allocations: 67.66 kB / 1.057 GB, free: 4.316 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002896/0.3216, allocations: 171.4 kB / 1.057 GB, free: 4.148 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/0.3217, allocations: 0 / 1.057 GB, free: 4.148 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.834e-06/0.3217, allocations: 0 / 1.057 GB, free: 4.148 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.058e-05/0.3217, allocations: 0 / 1.057 GB, free: 4.148 MB / 0.8106 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.0008954/0.3226, allocations: 486.5 kB / 1.057 GB, free: 3.613 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.361e-05/0.3227, allocations: 16.62 kB / 1.057 GB, free: 3.598 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.19e-05/0.3227, allocations: 46.73 kB / 1.057 GB, free: 3.543 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000256/0.323, allocations: 24.73 kB / 1.057 GB, free: 3.52 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002832/0.3233, allocations: 212 kB / 1.058 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.021e-05/0.3234, allocations: 42.39 kB / 1.058 GB, free: 3.227 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.864e-05/0.3234, allocations: 15.94 kB / 1.058 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003121/0.3237, allocations: 144.1 kB / 1.058 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.3237, allocations: 0 / 1.058 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.88e-05/0.3238, allocations: 8 kB / 1.058 GB, free: 3.047 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.166e-05/0.3238, allocations: 8 kB / 1.058 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002036/0.324, allocations: 87.88 kB / 1.058 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009649/0.325, allocations: 0.648 MB / 1.059 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002393/0.3252, allocations: 46.62 kB / 1.059 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.99e-05/0.3253, allocations: 32.84 kB / 1.059 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.222e-05/0.3253, allocations: 0 / 1.059 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001935/0.3255, allocations: 154.1 kB / 1.059 GB, free: 1.98 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.583e-06/0.3255, allocations: 0 / 1.059 GB, free: 1.98 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004022/0.326, allocations: 159.2 kB / 1.059 GB, free: 1.812 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.978e-05/0.3261, allocations: 136.5 kB / 1.059 GB, free: 1.648 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001661/0.3262, allocations: 179.7 kB / 1.059 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.773e-05/0.3263, allocations: 25.7 kB / 1.059 GB, free: 1.434 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.99e-05/0.3263, allocations: 143.8 kB / 1.059 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.299e-05/0.3264, allocations: 23.72 kB / 1.059 GB, free: 1.262 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.636e-05/0.3265, allocations: 37.7 kB / 1.059 GB, free: 1.219 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001109/0.3266, allocations: 322.8 kB / 1.06 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.645e-05/0.3267, allocations: 43.97 kB / 1.06 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000128/0.3268, allocations: 106.9 kB / 1.06 GB, free: 0.7148 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002811/0.3271, allocations: 230.3 kB / 1.06 GB, free: 448 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.3271, allocations: 0 / 1.06 GB, free: 448 kB / 0.8106 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003578/0.3275, allocations: 252.6 kB / 1.06 GB, free: 176 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.558e-05/0.3275, allocations: 63.33 kB / 1.06 GB, free: 100 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/0.3275, allocations: 4 kB / 1.06 GB, free: 96 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.3276, allocations: 4 kB / 1.06 GB, free: 92 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001238/0.3277, allocations: 35.92 kB / 1.06 GB, free: 56 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.207e-06/0.3277, allocations: 4 kB / 1.06 GB, free: 52 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001314/0.3278, allocations: 24.14 kB / 1.06 GB, free: 28 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.534e-05/0.3279, allocations: 8 kB / 1.06 GB, free: 20 kB / 0.8106 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.0001529/0.328, allocations: 181.2 kB / 1.061 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.527e-05/0.3281, allocations: 19.75 kB / 1.061 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.46e-05/0.3281, allocations: 13.41 kB / 1.061 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.3281, allocations: 0 / 1.061 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.3281, allocations: 0 / 1.061 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.3281, allocations: 0 / 1.061 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001831/0.3283, allocations: 209.6 kB / 1.061 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.3283, allocations: 0 / 1.061 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.983e-05/0.3284, allocations: 15.98 kB / 1.061 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.605e-06/0.3284, allocations: 7.938 kB / 1.061 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.305e-05/0.3284, allocations: 0 / 1.061 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.3285, allocations: 0 / 1.061 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.3285, allocations: 3.938 kB / 1.061 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003943/0.3289, allocations: 218.6 kB / 1.061 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.34e-05/0.3289, allocations: 85.02 kB / 1.061 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.408e-05/0.329, allocations: 16.02 kB / 1.061 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.16e-05/0.3291, allocations: 8 kB / 1.061 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.112e-05/0.3291, allocations: 11.98 kB / 1.061 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.835e-06/0.3292, allocations: 3.938 kB / 1.061 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001184/0.3293, allocations: 139.5 kB / 1.061 GB, free: 15 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3293, allocations: 0 / 1.061 GB, free: 15 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000251/0.3295, allocations: 28 kB / 1.061 GB, free: 14.97 MB / 0.8262 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.0006617/0.3302, allocations: 0.7545 MB / 1.062 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000315/0.3305, allocations: 214.9 kB / 1.062 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3306, allocations: 4.688 kB / 1.062 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001155/0.3307, allocations: 103.4 kB / 1.062 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002338/0.3309, allocations: 21.03 kB / 1.062 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002241/0.3332, allocations: 1.949 MB / 1.064 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002758/0.3335, allocations: 0.7158 MB / 1.065 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.171e-05/0.3335, allocations: 20.62 kB / 1.065 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.689e-05/0.3336, allocations: 35.42 kB / 1.065 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.3336, allocations: 0 / 1.065 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0222/0.3558, allocations: 3.066 MB / 1.068 GB, free: 7.93 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.392/7.748, allocations: 7.938 kB / 1.068 GB, free: 7.926 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches