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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.00116/0.00116, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001258/0.001258, allocations: 191.3 kB / 16.14 MB, free: 6.645 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.424/1.424, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.806/2.806, allocations: 461.9 MB / 0.7342 GB, free: 15.01 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 69.97 kB / 0.8984 GB, free: 37.29 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3733/0.3746, allocations: 157.4 MB / 1.052 GB, free: 8.871 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.004257/0.3789, allocations: 2.366 MB / 1.054 GB, free: 6.488 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001243/0.3802, allocations: 0.7831 MB / 1.055 GB, free: 5.699 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.815e-05/0.3803, allocations: 4 kB / 1.055 GB, free: 5.695 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0005857/0.3809, allocations: 135.5 kB / 1.055 GB, free: 5.562 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001636/0.3811, allocations: 63.72 kB / 1.055 GB, free: 5.5 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001615/0.3813, allocations: 51.89 kB / 1.055 GB, free: 5.449 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002319/0.3815, allocations: 187.4 kB / 1.056 GB, free: 5.266 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002077/0.3817, allocations: 69.08 kB / 1.056 GB, free: 5.199 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001169/0.3818, allocations: 59.7 kB / 1.056 GB, free: 5.141 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001471/0.382, allocations: 71.73 kB / 1.056 GB, free: 5.07 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.972e-05/0.382, allocations: 4 kB / 1.056 GB, free: 5.066 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001312/0.3822, allocations: 59.89 kB / 1.056 GB, free: 5.008 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.764e-05/0.3822, allocations: 35.84 kB / 1.056 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.479e-05/0.3823, allocations: 67.64 kB / 1.056 GB, free: 4.906 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002407/0.3826, allocations: 163.7 kB / 1.056 GB, free: 4.746 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3826, allocations: 4 kB / 1.056 GB, free: 4.742 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.82e-07/0.3826, allocations: 4 kB / 1.056 GB, free: 4.738 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.929e-06/0.3826, allocations: 0 / 1.056 GB, free: 4.738 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.0008939/0.3835, allocations: 490.6 kB / 1.057 GB, free: 4.199 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.3836, allocations: 11.97 kB / 1.057 GB, free: 4.188 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003157/0.3839, allocations: 32.72 kB / 1.057 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002946/0.3842, allocations: 217.2 kB / 1.057 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.483e-05/0.3843, allocations: 38.39 kB / 1.057 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.353e-05/0.3843, allocations: 20.12 kB / 1.057 GB, free: 3.844 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003207/0.3846, allocations: 144.2 kB / 1.057 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.3846, allocations: 4 kB / 1.057 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.906e-05/0.3847, allocations: 4 kB / 1.057 GB, free: 3.68 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.894e-05/0.3847, allocations: 7.938 kB / 1.057 GB, free: 3.672 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001922/0.3849, allocations: 79.95 kB / 1.057 GB, free: 3.594 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008416/0.3857, allocations: 0.6441 MB / 1.058 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000254/0.386, allocations: 62.48 kB / 1.058 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.292e-05/0.3861, allocations: 28.91 kB / 1.058 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.523e-05/0.3861, allocations: 0 / 1.058 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001967/0.3863, allocations: 138.8 kB / 1.058 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.242e-06/0.3863, allocations: 4 kB / 1.058 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003665/0.3867, allocations: 163.2 kB / 1.058 GB, free: 2.449 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/0.3868, allocations: 148.5 kB / 1.058 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001688/0.387, allocations: 174.4 kB / 1.058 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.613e-05/0.387, allocations: 25.7 kB / 1.058 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.931e-05/0.3871, allocations: 139.8 kB / 1.059 GB, free: 1.918 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.349e-05/0.3871, allocations: 23.7 kB / 1.059 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.953e-05/0.3872, allocations: 33.7 kB / 1.059 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001119/0.3873, allocations: 326.8 kB / 1.059 GB, free: 1.527 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.074e-05/0.3874, allocations: 39.98 kB / 1.059 GB, free: 1.488 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001275/0.3876, allocations: 103 kB / 1.059 GB, free: 1.355 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002412/0.3878, allocations: 234.3 kB / 1.059 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.3878, allocations: 0 / 1.059 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000342/0.3882, allocations: 248.5 kB / 1.06 GB, free: 0.8125 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.525e-05/0.3882, allocations: 60.97 kB / 1.06 GB, free: 0.7422 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.729e-06/0.3882, allocations: 12.25 kB / 1.06 GB, free: 0.7305 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.3883, allocations: 4 kB / 1.06 GB, free: 0.7266 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001172/0.3884, allocations: 35.92 kB / 1.06 GB, free: 0.6914 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.418e-06/0.3884, allocations: 7.984 kB / 1.06 GB, free: 0.6836 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001421/0.3886, allocations: 19.84 kB / 1.06 GB, free: 0.6641 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.61e-05/0.3886, allocations: 8 kB / 1.06 GB, free: 0.6562 MB / 0.8106 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.0001391/0.3887, allocations: 172.9 kB / 1.06 GB, free: 484 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.317e-05/0.3888, allocations: 15.81 kB / 1.06 GB, free: 468 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.468e-05/0.3888, allocations: 25.33 kB / 1.06 GB, free: 440 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.3888, allocations: 0 / 1.06 GB, free: 440 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.3888, allocations: 4 kB / 1.06 GB, free: 436 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.3888, allocations: 0 / 1.06 GB, free: 436 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000168/0.389, allocations: 213.6 kB / 1.06 GB, free: 172 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.389, allocations: 0 / 1.06 GB, free: 172 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.861e-05/0.3891, allocations: 8 kB / 1.06 GB, free: 164 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.3891, allocations: 0 / 1.06 GB, free: 164 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.827e-05/0.3891, allocations: 11.92 kB / 1.06 GB, free: 152 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.3891, allocations: 0 / 1.06 GB, free: 152 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3891, allocations: 0 / 1.06 GB, free: 152 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003809/0.3895, allocations: 214.8 kB / 1.06 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.615e-05/0.3896, allocations: 92.95 kB / 1.06 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.982e-05/0.3896, allocations: 7.938 kB / 1.06 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.164e-05/0.3897, allocations: 11.92 kB / 1.06 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.619e-05/0.3898, allocations: 11.98 kB / 1.06 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.916e-06/0.3898, allocations: 4.062 kB / 1.06 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.777e-05/0.3899, allocations: 136.8 kB / 1.061 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.41e-07/0.3899, allocations: 0 / 1.061 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000229/0.3901, allocations: 28 kB / 1.061 GB, free: 15.61 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.0001049/0.3902, allocations: 103.2 kB / 1.061 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002951/0.3905, allocations: 215.2 kB / 1.061 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.3906, allocations: 4.062 kB / 1.061 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001153/0.3907, allocations: 103.4 kB / 1.061 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002305/0.3909, allocations: 19.92 kB / 1.061 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005587/0.3915, allocations: 348.1 kB / 1.061 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002685/0.3918, allocations: 0.716 MB / 1.062 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.695e-05/0.3918, allocations: 20.62 kB / 1.062 GB, free: 14 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.883e-05/0.3919, allocations: 15.44 kB / 1.062 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of SimCode: time 3.2e-07/0.3919, allocations: 3.938 kB / 1.062 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of Templates: time 0.003573/0.3955, allocations: 1.24 MB / 1.063 GB, free: 12.77 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches