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.008418/0.008418, allocations: 98.25 kB / 15.73 MB, free: 6.445 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.001728/0.001728, allocations: 196.6 kB / 16.68 MB, free: 6.352 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.423/1.423, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.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.423/2.423, allocations: 390.2 MB / 0.6648 GB, free: 124 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 62.78 kB / 0.9508 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3794/0.3807, allocations: 140.4 MB / 1.088 GB, free: 1.488 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.004091/0.3848, allocations: 2.305 MB / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001456/0.3863, allocations: 0.7792 MB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001208/0.3864, allocations: 0 / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.000719/0.3872, allocations: 151.4 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002029/0.3874, allocations: 67.61 kB / 1.091 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001697/0.3875, allocations: 47.89 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000256/0.3878, allocations: 167.5 kB / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003039/0.3881, allocations: 93 kB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001467/0.3883, allocations: 71.69 kB / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001754/0.3885, allocations: 67.75 kB / 1.092 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.063e-05/0.3885, allocations: 12 kB / 1.092 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001215/0.3886, allocations: 51.89 kB / 1.092 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 7.917e-05/0.3887, allocations: 47.77 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.916e-05/0.3888, allocations: 59.73 kB / 1.092 GB, free: 13.56 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003017/0.3891, allocations: 175.3 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3891, allocations: 0 / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of FrontEnd: time 4.318e-06/0.3891, allocations: 0 / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.198e-05/0.3892, allocations: 3.938 kB / 1.092 GB, free: 13.38 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.0008123/0.39, allocations: 496 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.39, allocations: 12.03 kB / 1.092 GB, free: 12.83 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002267/0.3903, allocations: 28.88 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002744/0.3905, allocations: 220.1 kB / 1.093 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.209e-05/0.3906, allocations: 38.44 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.646e-05/0.3907, allocations: 12.12 kB / 1.093 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003111/0.391, allocations: 148.1 kB / 1.093 GB, free: 12.33 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.391, allocations: 3.938 kB / 1.093 GB, free: 12.33 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.249e-05/0.391, allocations: 12 kB / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.218e-05/0.3911, allocations: 4 kB / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001963/0.3913, allocations: 79.95 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009051/0.3922, allocations: 0.6442 MB / 1.094 GB, free: 11.53 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002615/0.3924, allocations: 62.55 kB / 1.094 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.067e-05/0.3925, allocations: 28.84 kB / 1.094 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.675e-05/0.3926, allocations: 0 / 1.094 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002349/0.3928, allocations: 134.8 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.323e-06/0.3928, allocations: 4 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0003816/0.3932, allocations: 167.3 kB / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.497e-05/0.3933, allocations: 136.5 kB / 1.094 GB, free: 10.93 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001798/0.3935, allocations: 186.6 kB / 1.094 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.841e-05/0.3935, allocations: 29.7 kB / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.995e-05/0.3936, allocations: 136 kB / 1.094 GB, free: 10.56 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.034e-05/0.3937, allocations: 31.77 kB / 1.094 GB, free: 10.53 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.23e-05/0.3937, allocations: 41.7 kB / 1.094 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001421/0.3939, allocations: 326.8 kB / 1.095 GB, free: 10.15 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.938e-05/0.394, allocations: 39.98 kB / 1.095 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001254/0.3941, allocations: 101.4 kB / 1.095 GB, free: 9.98 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000274/0.3944, allocations: 242.3 kB / 1.095 GB, free: 9.691 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.598e-06/0.3944, allocations: 0 / 1.095 GB, free: 9.691 MB / 0.8575 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003591/0.3948, allocations: 248.9 kB / 1.095 GB, free: 9.43 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.936e-05/0.3948, allocations: 63.41 kB / 1.095 GB, free: 9.355 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.3949, allocations: 3.938 kB / 1.095 GB, free: 9.352 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/0.3949, allocations: 4 kB / 1.095 GB, free: 9.348 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001226/0.395, allocations: 31.92 kB / 1.095 GB, free: 9.316 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.818e-06/0.395, allocations: 4 kB / 1.095 GB, free: 9.312 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001424/0.3952, allocations: 27.88 kB / 1.095 GB, free: 9.285 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.53e-05/0.3952, allocations: 4 kB / 1.095 GB, free: 9.281 MB / 0.8575 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.0001725/0.3954, allocations: 170.7 kB / 1.096 GB, free: 9.102 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.802e-05/0.3954, allocations: 15.91 kB / 1.096 GB, free: 9.086 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.889e-05/0.3955, allocations: 21.33 kB / 1.096 GB, free: 9.066 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-06/0.3955, allocations: 0 / 1.096 GB, free: 9.066 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.3955, allocations: 0 / 1.096 GB, free: 9.066 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.3955, allocations: 0 / 1.096 GB, free: 9.066 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002021/0.3957, allocations: 213.6 kB / 1.096 GB, free: 8.809 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.3957, allocations: 0 / 1.096 GB, free: 8.809 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.888e-05/0.3958, allocations: 12 kB / 1.096 GB, free: 8.797 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.3958, allocations: 0 / 1.096 GB, free: 8.797 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.705e-05/0.3958, allocations: 11.92 kB / 1.096 GB, free: 8.785 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.3958, allocations: 4 kB / 1.096 GB, free: 8.781 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.3958, allocations: 0 / 1.096 GB, free: 8.781 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004108/0.3963, allocations: 226.9 kB / 1.096 GB, free: 8.535 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 8.639e-05/0.3964, allocations: 85.09 kB / 1.096 GB, free: 8.434 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.402e-05/0.3964, allocations: 3.938 kB / 1.096 GB, free: 8.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001111/0.3965, allocations: 20.05 kB / 1.096 GB, free: 8.41 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.68e-05/0.3966, allocations: 4.094 kB / 1.096 GB, free: 8.406 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.358e-05/0.3966, allocations: 11.97 kB / 1.096 GB, free: 8.395 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001083/0.3967, allocations: 128.3 kB / 1.096 GB, free: 8.27 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3967, allocations: 0 / 1.096 GB, free: 8.27 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002595/0.397, allocations: 39.83 kB / 1.096 GB, free: 8.23 MB / 0.8575 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.0001125/0.3971, allocations: 99.25 kB / 1.096 GB, free: 8.125 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003303/0.3975, allocations: 222.7 kB / 1.097 GB, free: 7.883 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.3975, allocations: 0 / 1.097 GB, free: 7.883 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001357/0.3976, allocations: 103.4 kB / 1.097 GB, free: 7.77 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002365/0.3979, allocations: 23.92 kB / 1.097 GB, free: 7.746 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005987/0.3985, allocations: 294.5 kB / 1.097 GB, free: 7.434 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003586/0.3988, allocations: 0.7233 MB / 1.098 GB, free: 6.684 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 7.012e-05/0.3989, allocations: 16.64 kB / 1.098 GB, free: 6.668 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.491e-05/0.399, allocations: 23.42 kB / 1.098 GB, free: 6.645 MB / 0.8575 GB Notification: Performance of SimCode: time 2e-07/0.399, allocations: 0 / 1.098 GB, free: 6.645 MB / 0.8575 GB Notification: Performance of Templates: time 0.004249/0.4032, allocations: 1.4 MB / 1.099 GB, free: 5.258 MB / 0.8575 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches