Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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: 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_9_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_9_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.001142/0.001142, allocations: 110.7 kB / 16.41 MB, free: 6.496 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.001151/0.001151, allocations: 188.1 kB / 17.34 MB, free: 5.762 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.393/1.393, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.289/2.289, allocations: 390.3 MB / 0.6655 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 67.89 kB / 0.9515 GB, free: 7.684 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8002/0.8015, allocations: 140.4 MB / 1.089 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003371/0.8049, allocations: 2.311 MB / 1.091 GB, free: 3.938 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001253/0.8062, allocations: 0.7817 MB / 1.092 GB, free: 3.402 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001166/0.8064, allocations: 2.312 kB / 1.092 GB, free: 3.402 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0006388/0.807, allocations: 147 kB / 1.092 GB, free: 3.312 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000199/0.8072, allocations: 69.19 kB / 1.092 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001923/0.8074, allocations: 46.66 kB / 1.092 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002901/0.8077, allocations: 173.3 kB / 1.092 GB, free: 3.16 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003016/0.8081, allocations: 98.23 kB / 1.092 GB, free: 3.113 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001554/0.8082, allocations: 62.75 kB / 1.092 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001992/0.8084, allocations: 68.69 kB / 1.092 GB, free: 3.055 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.368e-05/0.8085, allocations: 12 kB / 1.092 GB, free: 3.055 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001458/0.8086, allocations: 57.23 kB / 1.092 GB, free: 3.035 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 6.633e-05/0.8087, allocations: 38.97 kB / 1.092 GB, free: 3.016 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 9.081e-05/0.8088, allocations: 68.14 kB / 1.092 GB, free: 2.973 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000304/0.8091, allocations: 172.2 kB / 1.093 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.8091, allocations: 0.75 kB / 1.093 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.144e-06/0.8091, allocations: 0 / 1.093 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.943e-06/0.8091, allocations: 4.609 kB / 1.093 GB, free: 2.906 MB / 0.8575 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.0007317/0.8099, allocations: 496.7 kB / 1.093 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.8099, allocations: 9.438 kB / 1.093 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002193/0.8101, allocations: 26.8 kB / 1.093 GB, free: 2.418 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002233/0.8104, allocations: 209.1 kB / 1.093 GB, free: 2.199 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.15e-05/0.8104, allocations: 37.47 kB / 1.093 GB, free: 2.164 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.32e-05/0.8105, allocations: 15.5 kB / 1.093 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003199/0.8108, allocations: 150.8 kB / 1.093 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.8108, allocations: 3.938 kB / 1.093 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.857e-05/0.8108, allocations: 2.344 kB / 1.093 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.227e-05/0.8109, allocations: 4.688 kB / 1.093 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002155/0.8111, allocations: 83.67 kB / 1.094 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008211/0.8119, allocations: 0.6372 MB / 1.094 GB, free: 1.477 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002417/0.8122, allocations: 61.09 kB / 1.094 GB, free: 1.438 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.206e-05/0.8123, allocations: 29.05 kB / 1.094 GB, free: 1.422 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.113e-05/0.8123, allocations: 5.156 kB / 1.094 GB, free: 1.418 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002241/0.8125, allocations: 151.7 kB / 1.094 GB, free: 1.289 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.563e-06/0.8125, allocations: 0 / 1.094 GB, free: 1.289 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0003853/0.8129, allocations: 165.1 kB / 1.095 GB, free: 1.188 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.347e-05/0.813, allocations: 132.6 kB / 1.095 GB, free: 1.031 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001693/0.8131, allocations: 192.4 kB / 1.095 GB, free: 0.8945 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.311e-05/0.8132, allocations: 30.55 kB / 1.095 GB, free: 0.8594 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.399e-05/0.8132, allocations: 131.8 kB / 1.095 GB, free: 0.7383 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.71e-05/0.8133, allocations: 25.59 kB / 1.095 GB, free: 0.7188 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.923e-05/0.8134, allocations: 38.05 kB / 1.095 GB, free: 0.6914 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.574e-05/0.8134, allocations: 327.8 kB / 1.095 GB, free: 380 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.84e-05/0.8135, allocations: 37.62 kB / 1.095 GB, free: 368 kB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001289/0.8137, allocations: 112.7 kB / 1.096 GB, free: 256 kB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002197/0.8139, allocations: 237.5 kB / 1.096 GB, free: 20 kB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.8139, allocations: 1.094 kB / 1.096 GB, free: 20 kB / 0.8575 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004565/0.8144, allocations: 246.7 kB / 1.096 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 5.199e-05/0.8144, allocations: 61.59 kB / 1.096 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.8144, allocations: 6.312 kB / 1.096 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.105e-05/0.8145, allocations: 3.188 kB / 1.096 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001385/0.8146, allocations: 31.7 kB / 1.096 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.297e-05/0.8146, allocations: 3.891 kB / 1.096 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001567/0.8148, allocations: 31.58 kB / 1.096 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.173e-05/0.8148, allocations: 6.906 kB / 1.096 GB, free: 15.78 MB / 0.8731 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.0001825/0.815, allocations: 170.2 kB / 1.096 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.054e-05/0.8151, allocations: 15.16 kB / 1.096 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.78e-05/0.8151, allocations: 19.67 kB / 1.096 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.8151, allocations: 1.031 kB / 1.096 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.8151, allocations: 0.7969 kB / 1.096 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.8151, allocations: 5.062 kB / 1.096 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002356/0.8154, allocations: 208.7 kB / 1.097 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.8154, allocations: 0.9688 kB / 1.097 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.308e-05/0.8155, allocations: 10.33 kB / 1.097 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.8155, allocations: 0.8438 kB / 1.097 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.781e-05/0.8155, allocations: 6.922 kB / 1.097 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.345e-06/0.8155, allocations: 0.5625 kB / 1.097 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.8155, allocations: 0 / 1.097 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004296/0.8159, allocations: 219.7 kB / 1.097 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 6.72e-05/0.816, allocations: 93.78 kB / 1.097 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.424e-05/0.8161, allocations: 11.16 kB / 1.097 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001011/0.8162, allocations: 13.78 kB / 1.097 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.482e-05/0.8162, allocations: 6.359 kB / 1.097 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.342e-05/0.8163, allocations: 6.344 kB / 1.097 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001428/0.8164, allocations: 131.2 kB / 1.097 GB, free: 15.02 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8164, allocations: 4.562 kB / 1.097 GB, free: 15.02 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002748/0.8167, allocations: 30.53 kB / 1.097 GB, free: 15.02 MB / 0.8731 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.0001315/0.8168, allocations: 103.1 kB / 1.097 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003577/0.8172, allocations: 215.9 kB / 1.097 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.8172, allocations: 0 / 1.097 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001455/0.8174, allocations: 104.4 kB / 1.097 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002496/0.8176, allocations: 27.25 kB / 1.097 GB, free: 14.67 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006864/0.8183, allocations: 315.2 kB / 1.098 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003238/0.8187, allocations: 0.7142 MB / 1.098 GB, free: 13.75 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.174e-05/0.8187, allocations: 18.77 kB / 1.099 GB, free: 13.73 MB / 0.8731 GB Notification: Performance of SimCode: time 3.51e-07/0.8187, allocations: 0 / 1.099 GB, free: 13.73 MB / 0.8731 GB Notification: Performance of Templates: time 0.00452/0.8232, allocations: 1.699 MB / 1.1 GB, free: 13.59 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.makefile (rm -f Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & ./Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches