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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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: translateModel(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|voltageControl.V_nominal|sou.V_in|Vtr_high.y|voltageControl.y",fileNamePrefix="Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL") translateModel(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|voltageControl.V_nominal|sou.V_in|Vtr_high.y|voltageControl.y",fileNamePrefix="Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001386/0.001386, allocations: 100.1 kB / 15.88 MB, free: 12 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.00141/0.00141, allocations: 199.4 kB / 16.79 MB, free: 6.809 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.378/1.378, allocations: 222.9 MB / 240.5 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.734/2.734, allocations: 461.9 MB / 0.7348 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.001291, allocations: 62.34 kB / 0.899 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2916/0.293, allocations: 157.4 MB / 1.053 GB, free: 8.32 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.004465/0.2975, allocations: 2.369 MB / 1.055 GB, free: 5.938 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001612/0.2991, allocations: 0.7831 MB / 1.056 GB, free: 5.148 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001584/0.2993, allocations: 0 / 1.056 GB, free: 5.148 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0006271/0.3, allocations: 135.5 kB / 1.056 GB, free: 5.016 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000268/0.3003, allocations: 63.72 kB / 1.056 GB, free: 4.953 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002058/0.3005, allocations: 43.89 kB / 1.056 GB, free: 4.91 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002804/0.3008, allocations: 199.4 kB / 1.056 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002314/0.3011, allocations: 65.08 kB / 1.056 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001622/0.3012, allocations: 63.7 kB / 1.056 GB, free: 4.59 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001901/0.3014, allocations: 71.67 kB / 1.056 GB, free: 4.52 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.765e-05/0.3015, allocations: 8 kB / 1.056 GB, free: 4.512 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001687/0.3016, allocations: 59.88 kB / 1.056 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.073e-05/0.3017, allocations: 31.89 kB / 1.057 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.668e-05/0.3018, allocations: 59.67 kB / 1.057 GB, free: 4.363 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002305/0.3021, allocations: 135.9 kB / 1.057 GB, free: 4.23 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.3021, allocations: 0 / 1.057 GB, free: 4.23 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.92e-07/0.3021, allocations: 0 / 1.057 GB, free: 4.23 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.082e-06/0.3021, allocations: 4 kB / 1.057 GB, free: 4.227 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.0008486/0.3029, allocations: 498.6 kB / 1.057 GB, free: 3.68 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.303, allocations: 11.97 kB / 1.057 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002556/0.3033, allocations: 28.73 kB / 1.057 GB, free: 3.641 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002722/0.3035, allocations: 213.7 kB / 1.057 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.156e-05/0.3036, allocations: 34.45 kB / 1.057 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.622e-05/0.3037, allocations: 16.12 kB / 1.057 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003103/0.304, allocations: 149 kB / 1.058 GB, free: 3.18 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.304, allocations: 0 / 1.058 GB, free: 3.18 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.333e-05/0.304, allocations: 8 kB / 1.058 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.781e-05/0.3041, allocations: 7.938 kB / 1.058 GB, free: 3.164 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000209/0.3043, allocations: 83.94 kB / 1.058 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009438/0.3052, allocations: 0.6441 MB / 1.058 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002549/0.3055, allocations: 58.48 kB / 1.058 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.399e-05/0.3056, allocations: 32.91 kB / 1.058 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.752e-05/0.3056, allocations: 0 / 1.058 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002155/0.3058, allocations: 138.8 kB / 1.059 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.323e-06/0.3059, allocations: 0 / 1.059 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004221/0.3063, allocations: 175.2 kB / 1.059 GB, free: 1.926 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.789e-05/0.3064, allocations: 140.5 kB / 1.059 GB, free: 1.758 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001874/0.3066, allocations: 182.9 kB / 1.059 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.005e-05/0.3066, allocations: 25.7 kB / 1.059 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001006/0.3067, allocations: 135.8 kB / 1.059 GB, free: 1.398 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.9e-05/0.3068, allocations: 23.7 kB / 1.059 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.472e-05/0.3068, allocations: 37.7 kB / 1.059 GB, free: 1.332 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001299/0.307, allocations: 326.8 kB / 1.06 GB, free: 1.004 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.652e-05/0.3071, allocations: 35.98 kB / 1.06 GB, free: 0.9688 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000125/0.3072, allocations: 109.4 kB / 1.06 GB, free: 0.8281 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002627/0.3075, allocations: 230.3 kB / 1.06 GB, free: 0.5508 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.3075, allocations: 0 / 1.06 GB, free: 0.5508 MB / 0.8106 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003732/0.3079, allocations: 248.6 kB / 1.06 GB, free: 296 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.116e-05/0.3079, allocations: 59.41 kB / 1.06 GB, free: 224 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.308, allocations: 3.938 kB / 1.06 GB, free: 220 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.308, allocations: 4 kB / 1.06 GB, free: 216 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000127/0.3081, allocations: 36.3 kB / 1.06 GB, free: 180 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.166e-05/0.3081, allocations: 11.94 kB / 1.06 GB, free: 168 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000142/0.3083, allocations: 23.83 kB / 1.06 GB, free: 144 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.611e-05/0.3083, allocations: 8 kB / 1.06 GB, free: 136 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.0001648/0.3085, allocations: 171.5 kB / 1.06 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.813e-05/0.3085, allocations: 15.66 kB / 1.06 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.397e-05/0.3085, allocations: 21.33 kB / 1.06 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.3086, allocations: 0 / 1.06 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.3086, allocations: 4 kB / 1.06 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.3086, allocations: 0 / 1.06 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001774/0.3088, allocations: 213.6 kB / 1.061 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3088, allocations: 3.938 kB / 1.061 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.287e-05/0.3089, allocations: 8 kB / 1.061 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.3089, allocations: 0 / 1.061 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.725e-05/0.3089, allocations: 7.922 kB / 1.061 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.3089, allocations: 4 kB / 1.061 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3089, allocations: 0 / 1.061 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003908/0.3093, allocations: 214.6 kB / 1.061 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.594e-05/0.3094, allocations: 89.05 kB / 1.061 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.246e-05/0.3094, allocations: 3.938 kB / 1.061 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.47e-05/0.3095, allocations: 11.98 kB / 1.061 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.613e-05/0.3096, allocations: 15.92 kB / 1.061 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.05e-05/0.3096, allocations: 4 kB / 1.061 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001067/0.3097, allocations: 127.2 kB / 1.061 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3097, allocations: 64 / 1.061 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002521/0.31, allocations: 32 kB / 1.061 GB, free: 15.1 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.0001069/0.3101, allocations: 103.2 kB / 1.061 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003364/0.3104, allocations: 218.6 kB / 1.062 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.3104, allocations: 0 / 1.062 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000127/0.3106, allocations: 112 kB / 1.062 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002538/0.3108, allocations: 21.19 kB / 1.062 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006496/0.3115, allocations: 369.9 kB / 1.062 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000289/0.3118, allocations: 0.7121 MB / 1.063 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.816e-05/0.3118, allocations: 15.44 kB / 1.063 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of SimCode: time 3.81e-07/0.3119, allocations: 0 / 1.063 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of Templates: time 0.003747/0.3156, allocations: 1.694 MB / 1.064 GB, free: 11.78 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.makefile (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 & ./Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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