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.001063/0.001063, allocations: 99.03 kB / 16.02 MB, free: 76 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.001296/0.001296, allocations: 182.5 kB / 16.92 MB, free: 6.918 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.396/1.396, allocations: 223.3 MB / 241 MB, free: 5.234 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.744/2.744, allocations: 462.7 MB / 0.7371 GB, free: 15.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000317/0.0003169, allocations: 16.08 kB / 0.9034 GB, free: 36.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3054/0.3058, allocations: 159.6 MB / 1.059 GB, free: 5.008 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003891/0.3097, allocations: 2.016 MB / 1.061 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001892/0.3116, allocations: 0.7676 MB / 1.062 GB, free: 2.207 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002008/0.3119, allocations: 4 kB / 1.062 GB, free: 2.203 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001885/0.3121, allocations: 19.8 kB / 1.062 GB, free: 2.184 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0004205/0.3125, allocations: 55.73 kB / 1.062 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002857/0.3128, allocations: 55.88 kB / 1.062 GB, free: 2.074 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003875/0.3132, allocations: 191.4 kB / 1.062 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003582/0.3136, allocations: 193.6 kB / 1.063 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001638/0.3138, allocations: 47.78 kB / 1.063 GB, free: 1.621 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002063/0.314, allocations: 67.69 kB / 1.063 GB, free: 1.555 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.45e-05/0.314, allocations: 8 kB / 1.063 GB, free: 1.547 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001765/0.3142, allocations: 59.86 kB / 1.063 GB, free: 1.488 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.444e-05/0.3143, allocations: 31.91 kB / 1.063 GB, free: 1.457 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001089/0.3144, allocations: 85.38 kB / 1.063 GB, free: 1.367 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002338/0.3146, allocations: 135.8 kB / 1.063 GB, free: 1.234 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3147, allocations: 0 / 1.063 GB, free: 1.234 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.355e-06/0.3147, allocations: 0 / 1.063 GB, free: 1.234 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.521e-06/0.3147, allocations: 0 / 1.063 GB, free: 1.234 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.0009016/0.3156, allocations: 474.6 kB / 1.063 GB, free: 0.7109 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/0.3156, allocations: 11.97 kB / 1.063 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002748/0.3159, allocations: 24.83 kB / 1.063 GB, free: 0.6758 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002818/0.3162, allocations: 212 kB / 1.064 GB, free: 440 kB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.329e-05/0.3163, allocations: 34.45 kB / 1.064 GB, free: 400 kB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.35e-05/0.3163, allocations: 16.12 kB / 1.064 GB, free: 384 kB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003183/0.3166, allocations: 156.1 kB / 1.064 GB, free: 212 kB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.3167, allocations: 0 / 1.064 GB, free: 212 kB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.16e-05/0.3167, allocations: 4 kB / 1.064 GB, free: 208 kB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.076e-05/0.3167, allocations: 11.94 kB / 1.064 GB, free: 196 kB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002416/0.317, allocations: 91.89 kB / 1.064 GB, free: 104 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009581/0.3179, allocations: 0.6441 MB / 1.065 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002368/0.3182, allocations: 58.61 kB / 1.065 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.67e-05/0.3183, allocations: 28.84 kB / 1.065 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.344e-05/0.3183, allocations: 4 kB / 1.065 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002668/0.3186, allocations: 146.7 kB / 1.065 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.463e-06/0.3186, allocations: 0 / 1.065 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004084/0.319, allocations: 171.3 kB / 1.065 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.959e-05/0.3191, allocations: 144.5 kB / 1.065 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001936/0.3193, allocations: 178.9 kB / 1.065 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.052e-05/0.3193, allocations: 25.7 kB / 1.065 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001037/0.3194, allocations: 143.7 kB / 1.065 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.464e-05/0.3195, allocations: 15.8 kB / 1.065 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.45e-05/0.3195, allocations: 21.72 kB / 1.065 GB, free: 14.37 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001272/0.3196, allocations: 322.8 kB / 1.066 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.835e-05/0.3197, allocations: 39.97 kB / 1.066 GB, free: 14 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001378/0.3199, allocations: 118.6 kB / 1.066 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002695/0.3202, allocations: 234.3 kB / 1.066 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.3202, allocations: 0 / 1.066 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003886/0.3206, allocations: 256.8 kB / 1.066 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.288e-05/0.3207, allocations: 63.39 kB / 1.066 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/0.3207, allocations: 3.938 kB / 1.066 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.873e-05/0.3207, allocations: 4 kB / 1.066 GB, free: 13.22 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001207/0.3209, allocations: 31.92 kB / 1.066 GB, free: 13.19 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.11e-05/0.3209, allocations: 4 kB / 1.066 GB, free: 13.19 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001406/0.321, allocations: 31.83 kB / 1.067 GB, free: 13.16 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.403e-05/0.321, allocations: 4 kB / 1.067 GB, free: 13.15 MB / 0.8262 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.0001457/0.3212, allocations: 173.4 kB / 1.067 GB, free: 12.97 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.416e-05/0.3212, allocations: 15.91 kB / 1.067 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.414e-05/0.3213, allocations: 17.34 kB / 1.067 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.3213, allocations: 3.984 kB / 1.067 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.3213, allocations: 4 kB / 1.067 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.3213, allocations: 3.938 kB / 1.067 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000185/0.3215, allocations: 209.5 kB / 1.067 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.3215, allocations: 0 / 1.067 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.231e-05/0.3216, allocations: 19.98 kB / 1.067 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.3216, allocations: 0 / 1.067 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.734e-05/0.3216, allocations: 3.938 kB / 1.067 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.913e-06/0.3216, allocations: 4 kB / 1.067 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-06/0.3216, allocations: 3.938 kB / 1.067 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004055/0.322, allocations: 214.7 kB / 1.067 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.312e-05/0.3221, allocations: 92.94 kB / 1.067 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.351e-05/0.3222, allocations: 11.94 kB / 1.067 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.302e-05/0.3223, allocations: 8 kB / 1.067 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.897e-05/0.3223, allocations: 11.92 kB / 1.067 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.918e-06/0.3224, allocations: 4 kB / 1.067 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001198/0.3225, allocations: 131.2 kB / 1.067 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3225, allocations: 0 / 1.067 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002558/0.3227, allocations: 36.06 kB / 1.067 GB, free: 12.09 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.0001113/0.3229, allocations: 99.33 kB / 1.068 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003222/0.3232, allocations: 222.6 kB / 1.068 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3232, allocations: 0 / 1.068 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001614/0.3234, allocations: 112 kB / 1.068 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002518/0.3236, allocations: 15.98 kB / 1.068 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006666/0.3243, allocations: 379.9 kB / 1.068 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003171/0.3246, allocations: 0.716 MB / 1.069 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.717e-05/0.3247, allocations: 15.44 kB / 1.069 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of SimCode: time 3.61e-07/0.3247, allocations: 3.938 kB / 1.069 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of Templates: time 0.003897/0.3286, allocations: 1.676 MB / 1.071 GB, free: 8.785 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