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.008441/0.008441, allocations: 101.9 kB / 15.73 MB, free: 6.438 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.00148/0.00148, allocations: 194.3 kB / 16.67 MB, free: 6.355 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.432/1.432, 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.595/2.595, allocations: 390.2 MB / 0.6648 GB, free: 216 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 61.09 kB / 0.9508 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3815/0.3828, allocations: 140.4 MB / 1.088 GB, free: 1.527 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003955/0.3868, allocations: 2.305 MB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001303/0.3881, allocations: 0.7793 MB / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.175e-05/0.3883, allocations: 0 / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0006094/0.3889, allocations: 158.5 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001901/0.3891, allocations: 63.61 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001579/0.3893, allocations: 51.86 kB / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002462/0.3895, allocations: 159.5 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002746/0.3898, allocations: 108.9 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000123/0.3899, allocations: 71.7 kB / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001658/0.3901, allocations: 71.69 kB / 1.092 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.424e-05/0.3901, allocations: 12 kB / 1.092 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001136/0.3903, allocations: 51.89 kB / 1.092 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 6.104e-05/0.3903, allocations: 39.89 kB / 1.092 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.359e-05/0.3904, allocations: 63.67 kB / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000251/0.3907, allocations: 163.5 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.3907, allocations: 4 kB / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.673e-06/0.3907, allocations: 0 / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.923e-06/0.3907, allocations: 0 / 1.092 GB, free: 13.42 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.0007666/0.3915, allocations: 498.4 kB / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/0.3915, allocations: 8.031 kB / 1.092 GB, free: 12.87 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002141/0.3917, allocations: 24.83 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002751/0.392, allocations: 220 kB / 1.093 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.857e-05/0.3921, allocations: 38.45 kB / 1.093 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.312e-05/0.3921, allocations: 12.12 kB / 1.093 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002992/0.3924, allocations: 149.4 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.3925, allocations: 0 / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.696e-05/0.3925, allocations: 4 kB / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.814e-05/0.3925, allocations: 4 kB / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002066/0.3927, allocations: 87.94 kB / 1.093 GB, free: 12.28 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009198/0.3937, allocations: 0.6479 MB / 1.094 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002596/0.3939, allocations: 54.56 kB / 1.094 GB, free: 11.51 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.798e-05/0.394, allocations: 28.91 kB / 1.094 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.226e-05/0.394, allocations: 0 / 1.094 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002124/0.3943, allocations: 146.8 kB / 1.094 GB, free: 11.31 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.333e-06/0.3943, allocations: 0 / 1.094 GB, free: 11.31 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004067/0.3947, allocations: 171.2 kB / 1.094 GB, free: 11.13 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.901e-05/0.3948, allocations: 132.5 kB / 1.094 GB, free: 10.97 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001854/0.395, allocations: 182.6 kB / 1.094 GB, free: 10.78 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.083e-05/0.395, allocations: 29.7 kB / 1.094 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001047/0.3951, allocations: 143.8 kB / 1.094 GB, free: 10.6 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.417e-05/0.3951, allocations: 19.72 kB / 1.094 GB, free: 10.58 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.271e-05/0.3952, allocations: 41.7 kB / 1.094 GB, free: 10.53 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001501/0.3954, allocations: 322.8 kB / 1.095 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.49e-05/0.3955, allocations: 39.97 kB / 1.095 GB, free: 10.17 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001318/0.3956, allocations: 109.4 kB / 1.095 GB, free: 10.03 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002803/0.3959, allocations: 230.3 kB / 1.095 GB, free: 9.75 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.3959, allocations: 4 kB / 1.095 GB, free: 9.746 MB / 0.8575 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003552/0.3963, allocations: 240.6 kB / 1.095 GB, free: 9.492 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.588e-05/0.3963, allocations: 67.39 kB / 1.095 GB, free: 9.414 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.355e-05/0.3963, allocations: 11.94 kB / 1.095 GB, free: 9.402 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.202e-05/0.3964, allocations: 4 kB / 1.095 GB, free: 9.398 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001168/0.3965, allocations: 31.86 kB / 1.095 GB, free: 9.367 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/0.3965, allocations: 4 kB / 1.095 GB, free: 9.363 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001328/0.3966, allocations: 32.19 kB / 1.095 GB, free: 9.332 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.852e-05/0.3967, allocations: 11.98 kB / 1.095 GB, free: 9.32 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.0001589/0.3968, allocations: 170.3 kB / 1.096 GB, free: 9.141 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.211e-05/0.3969, allocations: 11.81 kB / 1.096 GB, free: 9.129 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.674e-05/0.3969, allocations: 17.34 kB / 1.096 GB, free: 9.113 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.3969, allocations: 4 kB / 1.096 GB, free: 9.109 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.3969, allocations: 0 / 1.096 GB, free: 9.109 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.3969, allocations: 0 / 1.096 GB, free: 9.109 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002144/0.3971, allocations: 221.6 kB / 1.096 GB, free: 8.844 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.3972, allocations: 0 / 1.096 GB, free: 8.844 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.054e-05/0.3972, allocations: 11.98 kB / 1.096 GB, free: 8.832 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.3973, allocations: 0 / 1.096 GB, free: 8.832 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.652e-05/0.3973, allocations: 7.938 kB / 1.096 GB, free: 8.824 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.3973, allocations: 0 / 1.096 GB, free: 8.824 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3973, allocations: 0 / 1.096 GB, free: 8.824 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004034/0.3977, allocations: 218.8 kB / 1.096 GB, free: 8.586 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.546e-05/0.3978, allocations: 85.05 kB / 1.096 GB, free: 8.484 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.038e-05/0.3978, allocations: 7.938 kB / 1.096 GB, free: 8.477 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.074e-05/0.3979, allocations: 11.98 kB / 1.096 GB, free: 8.465 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.116e-05/0.398, allocations: 7.984 kB / 1.096 GB, free: 8.457 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.067e-06/0.398, allocations: 4 kB / 1.096 GB, free: 8.453 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.00011/0.3981, allocations: 128.3 kB / 1.096 GB, free: 8.328 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3981, allocations: 0 / 1.096 GB, free: 8.328 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002419/0.3984, allocations: 39.88 kB / 1.096 GB, free: 8.289 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.0001152/0.3985, allocations: 107.3 kB / 1.096 GB, free: 8.176 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003326/0.3988, allocations: 214.6 kB / 1.097 GB, free: 7.941 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3988, allocations: 0 / 1.097 GB, free: 7.941 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001356/0.399, allocations: 107.4 kB / 1.097 GB, free: 7.824 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002308/0.3992, allocations: 12.62 kB / 1.097 GB, free: 7.812 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006057/0.3998, allocations: 298.3 kB / 1.097 GB, free: 7.496 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003273/0.4002, allocations: 0.7116 MB / 1.098 GB, free: 6.758 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 6.945e-05/0.4002, allocations: 24.62 kB / 1.098 GB, free: 6.734 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.596e-05/0.4003, allocations: 11.44 kB / 1.098 GB, free: 6.723 MB / 0.8575 GB Notification: Performance of SimCode: time 1.844e-06/0.4003, allocations: 0 / 1.098 GB, free: 6.723 MB / 0.8575 GB Notification: Performance of Templates: time 0.00432/0.4046, allocations: 1.43 MB / 1.099 GB, free: 5.309 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