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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001165/0.001165, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001176/0.001177, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 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: 223.2 MB / 239.9 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.516/2.516, allocations: 390.3 MB / 0.6653 GB, free: 2.906 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003903/0.0003903, allocations: 8 kB / 0.8145 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8872/0.8876, allocations: 142.3 MB / 0.9535 GB, free: 8.109 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.002747/0.8904, allocations: 1.92 MB / 0.9554 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001169/0.8916, allocations: 0.7314 MB / 0.9561 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.359e-05/0.8917, allocations: 2.219 kB / 0.9561 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001074/0.8918, allocations: 17.05 kB / 0.9561 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001996/0.892, allocations: 47.56 kB / 0.9562 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000151/0.8922, allocations: 33.44 kB / 0.9562 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001687/0.8923, allocations: 91.23 kB / 0.9563 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002373/0.8926, allocations: 198 kB / 0.9565 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001069/0.8927, allocations: 53.52 kB / 0.9565 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001265/0.8928, allocations: 53.27 kB / 0.9566 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.009e-05/0.8929, allocations: 5.844 kB / 0.9566 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.695e-05/0.893, allocations: 23.73 kB / 0.9566 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.524e-05/0.893, allocations: 33.94 kB / 0.9566 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.246e-05/0.8931, allocations: 49.23 kB / 0.9567 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001721/0.8933, allocations: 122.6 kB / 0.9568 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.8933, allocations: 1.469 kB / 0.9568 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.224e-06/0.8933, allocations: 0 / 0.9568 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.982e-06/0.8933, allocations: 0 / 0.9568 GB, free: 5.5 MB / 0.7169 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.000627/0.8939, allocations: 472.2 kB / 0.9572 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/0.894, allocations: 8.531 kB / 0.9572 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002539/0.8942, allocations: 32.14 kB / 0.9573 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002412/0.8945, allocations: 209.4 kB / 0.9575 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.476e-05/0.8946, allocations: 39.45 kB / 0.9575 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.666e-05/0.8946, allocations: 12.72 kB / 0.9575 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002982/0.8949, allocations: 153.2 kB / 0.9577 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.8949, allocations: 0 / 0.9577 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.012e-05/0.895, allocations: 6.938 kB / 0.9577 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.476e-05/0.895, allocations: 7.922 kB / 0.9577 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002007/0.8952, allocations: 88.83 kB / 0.9578 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008225/0.896, allocations: 0.6461 MB / 0.9584 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000223/0.8963, allocations: 60.31 kB / 0.9585 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.247e-05/0.8963, allocations: 5.641 kB / 0.9585 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001782/0.8965, allocations: 148.1 kB / 0.9586 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.483e-06/0.8965, allocations: 1.844 kB / 0.9586 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.000356/0.8968, allocations: 247.1 kB / 0.9588 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.6e-05/0.8969, allocations: 135.3 kB / 0.959 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001321/0.897, allocations: 182.3 kB / 0.9592 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.364e-05/0.8971, allocations: 27.08 kB / 0.9592 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.336e-05/0.8971, allocations: 141.4 kB / 0.9593 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.085e-05/0.8972, allocations: 26.39 kB / 0.9593 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.424e-06/0.8972, allocations: 1.375 kB / 0.9593 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.684e-05/0.8972, allocations: 327 kB / 0.9596 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.381e-05/0.8973, allocations: 37.97 kB / 0.9597 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001008/0.8974, allocations: 108.8 kB / 0.9598 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001106/0.8975, allocations: 112.5 kB / 0.9599 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.8976, allocations: 5.062 kB / 0.9599 GB, free: 2.504 MB / 0.7169 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003196/0.8979, allocations: 253.6 kB / 0.9601 GB, free: 2.328 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.602e-05/0.8979, allocations: 62.64 kB / 0.9602 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.8979, allocations: 2.562 kB / 0.9602 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.898, allocations: 3.906 kB / 0.9602 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001238/0.8981, allocations: 39.77 kB / 0.9602 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.345e-06/0.8981, allocations: 3.344 kB / 0.9603 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001354/0.8982, allocations: 30.11 kB / 0.9603 GB, free: 2.23 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.684e-05/0.8983, allocations: 7.562 kB / 0.9603 GB, free: 2.23 MB / 0.7169 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 ($whenCondition1,$whenCondition2,$PRE.voltageControl.ctrl.connected,voltageControl.ctrl.connected,$PRE.voltageControl.ctrl.tSwitch,voltageControl.ctrl.tSwitch) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001087/0.8984, allocations: 166.1 kB / 0.9604 GB, free: 2.066 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.241e-05/0.8984, allocations: 19.45 kB / 0.9605 GB, free: 2.055 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.949e-05/0.8984, allocations: 12.19 kB / 0.9605 GB, free: 2.047 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.8984, allocations: 1.375 kB / 0.9605 GB, free: 2.047 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.8985, allocations: 0 / 0.9605 GB, free: 2.047 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.8985, allocations: 1.375 kB / 0.9605 GB, free: 2.047 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001495/0.8986, allocations: 213.5 kB / 0.9607 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.8986, allocations: 0 / 0.9607 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.102e-05/0.8987, allocations: 13.7 kB / 0.9607 GB, free: 1.809 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.8987, allocations: 3.953 kB / 0.9607 GB, free: 1.805 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.327e-05/0.8987, allocations: 6.406 kB / 0.9607 GB, free: 1.801 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.8988, allocations: 1.406 kB / 0.9607 GB, free: 1.801 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.8988, allocations: 0 / 0.9607 GB, free: 1.801 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003439/0.8991, allocations: 233.2 kB / 0.9609 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.452e-05/0.8992, allocations: 92.2 kB / 0.961 GB, free: 1.523 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.867e-05/0.8992, allocations: 6.172 kB / 0.961 GB, free: 1.52 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.326e-05/0.8993, allocations: 12.98 kB / 0.961 GB, free: 1.516 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.058e-05/0.8994, allocations: 12.17 kB / 0.961 GB, free: 1.508 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.376e-06/0.8994, allocations: 1.812 kB / 0.961 GB, free: 1.508 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 8.465e-05/0.8995, allocations: 135.5 kB / 0.9612 GB, free: 1.402 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.8995, allocations: 0 / 0.9612 GB, free: 1.402 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002493/0.8997, allocations: 26.78 kB / 0.9612 GB, free: 1.402 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.691e-05/0.8998, allocations: 103.9 kB / 0.9613 GB, free: 1.312 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002812/0.9001, allocations: 217.2 kB / 0.9615 GB, free: 1.141 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.9001, allocations: 4.062 kB / 0.9615 GB, free: 1.137 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001068/0.9002, allocations: 108.2 kB / 0.9616 GB, free: 1.047 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001886/0.9004, allocations: 15.91 kB / 0.9616 GB, free: 1.039 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005249/0.901, allocations: 341.1 kB / 0.962 GB, free: 0.7734 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001404/0.9011, allocations: 0.7268 MB / 0.9627 GB, free: 48 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.575e-05/0.9012, allocations: 22.8 kB / 0.9627 GB, free: 36 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.035e-05/0.9012, allocations: 13.16 kB / 0.9627 GB, free: 28 kB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.9012, allocations: 0 / 0.9627 GB, free: 28 kB / 0.7169 GB Notification: Performance of Templates: time 0.003913/0.9051, allocations: 1.189 MB / 0.9639 GB, free: 15.44 MB / 0.7325 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","../files/Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches