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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001485/0.001485, allocations: 102.9 kB / 16.27 MB, free: 5.996 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.001494/0.001494, allocations: 186.3 kB / 17.2 MB, free: 5.605 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.346/1.346, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.649/2.649, allocations: 482.4 MB / 0.7553 GB, free: 6.953 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001842/0.001842, allocations: 67.98 kB / 0.9245 GB, free: 15.99 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7854/0.7873, allocations: 162.2 MB / 1.083 GB, free: 1.652 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003484/0.7908, allocations: 2.313 MB / 1.085 GB, free: 72 kB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001406/0.7922, allocations: 0.7852 MB / 1.086 GB, free: 15.53 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.91e-05/0.7923, allocations: 3.125 kB / 1.086 GB, free: 15.53 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0005974/0.793, allocations: 146.4 kB / 1.086 GB, free: 15.44 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001828/0.7931, allocations: 57.53 kB / 1.086 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001674/0.7933, allocations: 58.64 kB / 1.086 GB, free: 15.37 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002653/0.7936, allocations: 161.8 kB / 1.086 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002702/0.7939, allocations: 97.92 kB / 1.086 GB, free: 15.25 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001306/0.794, allocations: 66.64 kB / 1.086 GB, free: 15.22 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001562/0.7942, allocations: 63.28 kB / 1.087 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.726e-05/0.7942, allocations: 12.84 kB / 1.087 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001298/0.7944, allocations: 60.64 kB / 1.087 GB, free: 15.17 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 6.73e-05/0.7944, allocations: 39.14 kB / 1.087 GB, free: 15.15 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 9.417e-05/0.7945, allocations: 69.34 kB / 1.087 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002644/0.7948, allocations: 162 kB / 1.087 GB, free: 15.05 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.7948, allocations: 1.875 kB / 1.087 GB, free: 15.05 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.573e-06/0.7948, allocations: 0 / 1.087 GB, free: 15.05 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.149e-06/0.7948, allocations: 7.938 kB / 1.087 GB, free: 15.04 MB / 0.8419 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.0007874/0.7956, allocations: 496.5 kB / 1.087 GB, free: 14.56 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.7957, allocations: 13.59 kB / 1.087 GB, free: 14.56 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000208/0.7959, allocations: 22.03 kB / 1.087 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002759/0.7962, allocations: 214.9 kB / 1.088 GB, free: 14.33 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.654e-05/0.7962, allocations: 32.2 kB / 1.088 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.166e-05/0.7963, allocations: 16.88 kB / 1.088 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003158/0.7966, allocations: 157 kB / 1.088 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.7966, allocations: 0.625 kB / 1.088 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.822e-05/0.7966, allocations: 6 kB / 1.088 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.738e-05/0.7967, allocations: 5.172 kB / 1.088 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002001/0.7969, allocations: 87.44 kB / 1.088 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001004/0.7979, allocations: 0.6458 MB / 1.089 GB, free: 13.6 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002317/0.7981, allocations: 56.45 kB / 1.089 GB, free: 13.56 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.025e-05/0.7982, allocations: 28.84 kB / 1.089 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.287e-05/0.7982, allocations: 5.125 kB / 1.089 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000218/0.7985, allocations: 141.4 kB / 1.089 GB, free: 13.42 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 1.332e-06/0.7985, allocations: 0 / 1.089 GB, free: 13.42 MB / 0.8419 GB Notification: Performance of matching and sorting (n=7): time 0.0003782/0.7989, allocations: 161.4 kB / 1.089 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.437e-05/0.799, allocations: 136.7 kB / 1.089 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001849/0.7992, allocations: 189.2 kB / 1.089 GB, free: 13.03 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.227e-05/0.7992, allocations: 26.92 kB / 1.089 GB, free: 13 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/0.7993, allocations: 142.7 kB / 1.089 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.719e-05/0.7993, allocations: 21.66 kB / 1.089 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.05e-05/0.7994, allocations: 41.92 kB / 1.089 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0002075/0.7996, allocations: 323 kB / 1.09 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001068/0.7997, allocations: 38.64 kB / 1.09 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001493/0.7999, allocations: 115.7 kB / 1.09 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002845/0.8002, allocations: 226.5 kB / 1.09 GB, free: 12.16 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.8002, allocations: 5.031 kB / 1.09 GB, free: 12.15 MB / 0.8419 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003911/0.8006, allocations: 238.8 kB / 1.09 GB, free: 12 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 6.035e-05/0.8007, allocations: 61.39 kB / 1.09 GB, free: 11.94 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.8007, allocations: 6.219 kB / 1.09 GB, free: 11.94 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.056e-05/0.8007, allocations: 4.969 kB / 1.09 GB, free: 11.94 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001296/0.8008, allocations: 38.34 kB / 1.09 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.8009, allocations: 9.516 kB / 1.09 GB, free: 11.92 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001363/0.801, allocations: 20.77 kB / 1.09 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.972e-05/0.801, allocations: 12.09 kB / 1.09 GB, free: 11.91 MB / 0.8419 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.0001551/0.8012, allocations: 161.5 kB / 1.091 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.907e-05/0.8012, allocations: 15.89 kB / 1.091 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.509e-05/0.8013, allocations: 18.83 kB / 1.091 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.8013, allocations: 4.719 kB / 1.091 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.8013, allocations: 0.6562 kB / 1.091 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.8013, allocations: 1.062 kB / 1.091 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002085/0.8015, allocations: 211.4 kB / 1.091 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.8015, allocations: 0 / 1.091 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.663e-05/0.8016, allocations: 15.16 kB / 1.091 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.8016, allocations: 1.312 kB / 1.091 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.452e-05/0.8016, allocations: 5.312 kB / 1.091 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.8016, allocations: 1.344 kB / 1.091 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.8016, allocations: 3.938 kB / 1.091 GB, free: 11.51 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003898/0.802, allocations: 220.2 kB / 1.091 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.163e-05/0.8021, allocations: 87.02 kB / 1.091 GB, free: 11.26 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.264e-05/0.8021, allocations: 15.27 kB / 1.091 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.923e-05/0.8022, allocations: 6.125 kB / 1.091 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.343e-05/0.8023, allocations: 9.641 kB / 1.091 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.258e-06/0.8023, allocations: 3.75 kB / 1.091 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001215/0.8025, allocations: 134.6 kB / 1.091 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8025, allocations: 0.9688 kB / 1.091 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002469/0.8027, allocations: 33.84 kB / 1.091 GB, free: 11.15 MB / 0.8419 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.0001144/0.8028, allocations: 103.2 kB / 1.091 GB, free: 11.06 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003361/0.8032, allocations: 214.7 kB / 1.092 GB, free: 10.9 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.8032, allocations: 0.625 kB / 1.092 GB, free: 10.9 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001435/0.8033, allocations: 112.6 kB / 1.092 GB, free: 10.81 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002158/0.8036, allocations: 18.77 kB / 1.092 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005829/0.8042, allocations: 325.1 kB / 1.092 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000354/0.8045, allocations: 0.7178 MB / 1.093 GB, free: 9.871 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.678e-05/0.8046, allocations: 13.53 kB / 1.093 GB, free: 9.863 MB / 0.8419 GB Notification: Performance of SimCode: time 2.4e-07/0.8046, allocations: 0 / 1.093 GB, free: 9.863 MB / 0.8419 GB Notification: Performance of Templates: time 0.003897/0.8085, allocations: 1.707 MB / 1.094 GB, free: 9.699 MB / 0.8419 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=400 -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