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.001411/0.001411, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001455/0.001456, allocations: 194.6 kB / 16.25 MB, free: 6.621 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.394/1.394, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.766/2.766, allocations: 472.6 MB / 0.7448 GB, free: 4.859 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 63.44 kB / 0.9116 GB, free: 33.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3259/0.3272, allocations: 159.9 MB / 1.068 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003989/0.3312, allocations: 2.365 MB / 1.07 GB, free: 8.355 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001388/0.3326, allocations: 0.7715 MB / 1.071 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001652/0.3328, allocations: 4 kB / 1.071 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0006239/0.3335, allocations: 139.5 kB / 1.071 GB, free: 7.438 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002055/0.3337, allocations: 55.73 kB / 1.071 GB, free: 7.383 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000172/0.3339, allocations: 51.89 kB / 1.071 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002476/0.3341, allocations: 159.5 kB / 1.071 GB, free: 7.176 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000308/0.3345, allocations: 112.8 kB / 1.071 GB, free: 7.066 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001402/0.3346, allocations: 67.7 kB / 1.071 GB, free: 7 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001588/0.3348, allocations: 67.69 kB / 1.071 GB, free: 6.934 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.519e-05/0.3348, allocations: 12 kB / 1.071 GB, free: 6.922 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001252/0.3349, allocations: 55.89 kB / 1.071 GB, free: 6.867 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.279e-05/0.335, allocations: 43.83 kB / 1.072 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.769e-05/0.3351, allocations: 63.67 kB / 1.072 GB, free: 6.762 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002459/0.3354, allocations: 167.8 kB / 1.072 GB, free: 6.598 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3354, allocations: 7.922 kB / 1.072 GB, free: 6.59 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.313e-06/0.3354, allocations: 0 / 1.072 GB, free: 6.59 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.949e-06/0.3354, allocations: 4 kB / 1.072 GB, free: 6.586 MB / 0.8262 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.0007286/0.3361, allocations: 494.5 kB / 1.072 GB, free: 6.043 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.3362, allocations: 15.97 kB / 1.072 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000202/0.3364, allocations: 20.83 kB / 1.072 GB, free: 6.008 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002436/0.3366, allocations: 217.7 kB / 1.072 GB, free: 5.758 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.615e-05/0.3367, allocations: 34.45 kB / 1.072 GB, free: 5.719 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.899e-05/0.3367, allocations: 16.12 kB / 1.073 GB, free: 5.703 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003376/0.3371, allocations: 148.1 kB / 1.073 GB, free: 5.543 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.786e-06/0.3371, allocations: 0 / 1.073 GB, free: 5.543 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.859e-05/0.3371, allocations: 8 kB / 1.073 GB, free: 5.535 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.656e-05/0.3371, allocations: 4 kB / 1.073 GB, free: 5.531 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001994/0.3374, allocations: 87.88 kB / 1.073 GB, free: 5.445 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008771/0.3382, allocations: 0.648 MB / 1.073 GB, free: 4.734 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002267/0.3385, allocations: 54.62 kB / 1.073 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.478e-05/0.3386, allocations: 28.84 kB / 1.073 GB, free: 4.641 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.261e-05/0.3386, allocations: 0 / 1.073 GB, free: 4.641 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001919/0.3388, allocations: 142.8 kB / 1.074 GB, free: 4.477 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.343e-06/0.3388, allocations: 0 / 1.074 GB, free: 4.477 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0003674/0.3392, allocations: 171.2 kB / 1.074 GB, free: 4.297 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.693e-05/0.3392, allocations: 132.5 kB / 1.074 GB, free: 4.137 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001605/0.3394, allocations: 186.9 kB / 1.074 GB, free: 3.945 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.929e-05/0.3394, allocations: 25.7 kB / 1.074 GB, free: 3.914 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.763e-05/0.3395, allocations: 143.7 kB / 1.074 GB, free: 3.766 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.247e-05/0.3396, allocations: 15.81 kB / 1.074 GB, free: 3.75 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.876e-05/0.3396, allocations: 41.61 kB / 1.074 GB, free: 3.703 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001063/0.3397, allocations: 322.8 kB / 1.075 GB, free: 3.379 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.663e-05/0.3398, allocations: 43.97 kB / 1.075 GB, free: 3.336 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001266/0.34, allocations: 111.2 kB / 1.075 GB, free: 3.195 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002328/0.3402, allocations: 222.4 kB / 1.075 GB, free: 2.926 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.3402, allocations: 4 kB / 1.075 GB, free: 2.922 MB / 0.8262 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003411/0.3406, allocations: 244.6 kB / 1.075 GB, free: 2.664 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.697e-05/0.3406, allocations: 59.39 kB / 1.075 GB, free: 2.594 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.186e-06/0.3406, allocations: 11.94 kB / 1.075 GB, free: 2.582 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.3407, allocations: 4 kB / 1.075 GB, free: 2.578 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001231/0.3408, allocations: 36.23 kB / 1.075 GB, free: 2.543 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/0.3408, allocations: 11.94 kB / 1.075 GB, free: 2.531 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001355/0.3409, allocations: 23.83 kB / 1.075 GB, free: 2.508 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.306e-05/0.341, allocations: 4 kB / 1.075 GB, free: 2.504 MB / 0.8262 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.0001285/0.3411, allocations: 175.4 kB / 1.075 GB, free: 2.316 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.784e-05/0.3411, allocations: 15.81 kB / 1.076 GB, free: 2.301 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.111e-05/0.3412, allocations: 17.34 kB / 1.076 GB, free: 2.281 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.3412, allocations: 0 / 1.076 GB, free: 2.281 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.3412, allocations: 4 kB / 1.076 GB, free: 2.277 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.3412, allocations: 0 / 1.076 GB, free: 2.277 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001624/0.3414, allocations: 209.6 kB / 1.076 GB, free: 2.023 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.3414, allocations: 0 / 1.076 GB, free: 2.023 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.362e-05/0.3415, allocations: 15.98 kB / 1.076 GB, free: 2.008 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.3415, allocations: 0 / 1.076 GB, free: 2.008 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.584e-05/0.3415, allocations: 7.938 kB / 1.076 GB, free: 2 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.3415, allocations: 0 / 1.076 GB, free: 2 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.3415, allocations: 0 / 1.076 GB, free: 2 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003694/0.3419, allocations: 226.8 kB / 1.076 GB, free: 1.754 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.016e-05/0.3419, allocations: 85.05 kB / 1.076 GB, free: 1.652 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.017e-05/0.342, allocations: 7.922 kB / 1.076 GB, free: 1.645 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/0.3421, allocations: 8 kB / 1.076 GB, free: 1.637 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.809e-05/0.3421, allocations: 11.98 kB / 1.076 GB, free: 1.625 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.015e-06/0.3422, allocations: 0 / 1.076 GB, free: 1.625 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001056/0.3423, allocations: 135.2 kB / 1.076 GB, free: 1.492 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3423, allocations: 4.062 kB / 1.076 GB, free: 1.488 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002563/0.3425, allocations: 31.91 kB / 1.076 GB, free: 1.457 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 9.397e-05/0.3426, allocations: 99.25 kB / 1.076 GB, free: 1.352 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003037/0.343, allocations: 214.6 kB / 1.077 GB, free: 1.117 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.343, allocations: 0 / 1.077 GB, free: 1.117 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001265/0.3431, allocations: 108 kB / 1.077 GB, free: 1 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002178/0.3433, allocations: 26.47 kB / 1.077 GB, free: 0.9766 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005653/0.3439, allocations: 342.2 kB / 1.077 GB, free: 0.6172 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002806/0.3442, allocations: 0.7119 MB / 1.078 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 8.043e-05/0.3443, allocations: 20.62 kB / 1.078 GB, free: 15.86 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.069e-05/0.3443, allocations: 15.44 kB / 1.078 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of SimCode: time 2.91e-07/0.3443, allocations: 0 / 1.078 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of Templates: time 0.003745/0.3481, allocations: 1.309 MB / 1.079 GB, free: 14.55 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=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