Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001729/0.001736, allocations: 109.1 kB / 16.27 MB, free: 6.41 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.001871/0.001871, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.531/1.531, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.685/2.685, allocations: 437.1 MB / 0.711 GB, free: 4.543 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00198/0.00198, allocations: 67.61 kB / 0.8699 GB, free: 2.23 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3247/0.3267, allocations: 151.6 MB / 1.018 GB, free: 10.68 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.004057/0.3309, allocations: 2.32 MB / 1.02 GB, free: 8.348 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001316/0.3322, allocations: 0.7792 MB / 1.021 GB, free: 7.562 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.775e-05/0.3323, allocations: 4 kB / 1.021 GB, free: 7.559 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0005906/0.3329, allocations: 147.4 kB / 1.021 GB, free: 7.414 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001766/0.3331, allocations: 67.64 kB / 1.021 GB, free: 7.348 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001589/0.3333, allocations: 47.89 kB / 1.021 GB, free: 7.301 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0002426/0.3336, allocations: 167.4 kB / 1.021 GB, free: 7.137 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000258/0.3338, allocations: 97.58 kB / 1.021 GB, free: 7.039 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001198/0.3339, allocations: 67.7 kB / 1.022 GB, free: 6.973 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001591/0.3341, allocations: 71.67 kB / 1.022 GB, free: 6.902 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.661e-05/0.3341, allocations: 12 kB / 1.022 GB, free: 6.891 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001174/0.3343, allocations: 51.89 kB / 1.022 GB, free: 6.84 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 6.381e-05/0.3343, allocations: 35.91 kB / 1.022 GB, free: 6.805 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 9.248e-05/0.3344, allocations: 71.66 kB / 1.022 GB, free: 6.734 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002425/0.3347, allocations: 167.7 kB / 1.022 GB, free: 6.57 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.3347, allocations: 0 / 1.022 GB, free: 6.57 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.693e-06/0.3347, allocations: 4 kB / 1.022 GB, free: 6.566 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.49e-06/0.3347, allocations: 0 / 1.022 GB, free: 6.566 MB / 0.795 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.0007331/0.3355, allocations: 494.5 kB / 1.022 GB, free: 6.023 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.139e-05/0.3355, allocations: 8.031 kB / 1.022 GB, free: 6.016 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002139/0.3357, allocations: 32.73 kB / 1.022 GB, free: 5.984 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000256/0.336, allocations: 209.9 kB / 1.023 GB, free: 5.742 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.883e-05/0.3361, allocations: 38.44 kB / 1.023 GB, free: 5.699 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.12e-05/0.3361, allocations: 20.06 kB / 1.023 GB, free: 5.68 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002936/0.3364, allocations: 149.5 kB / 1.023 GB, free: 5.52 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.3364, allocations: 4 kB / 1.023 GB, free: 5.516 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.718e-05/0.3364, allocations: 3.984 kB / 1.023 GB, free: 5.512 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.955e-05/0.3365, allocations: 4 kB / 1.023 GB, free: 5.508 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002002/0.3367, allocations: 87.89 kB / 1.023 GB, free: 5.422 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009882/0.3377, allocations: 0.6402 MB / 1.024 GB, free: 4.715 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002296/0.3379, allocations: 58.55 kB / 1.024 GB, free: 4.648 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.734e-05/0.338, allocations: 24.92 kB / 1.024 GB, free: 4.621 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.04e-05/0.338, allocations: 4 kB / 1.024 GB, free: 4.617 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002151/0.3382, allocations: 150.7 kB / 1.024 GB, free: 4.445 MB / 0.795 GB Notification: Performance of pre-optimization done (n=7): time 1.353e-06/0.3382, allocations: 0 / 1.024 GB, free: 4.445 MB / 0.795 GB Notification: Performance of matching and sorting (n=7): time 0.0003729/0.3386, allocations: 163.3 kB / 1.024 GB, free: 4.273 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.038e-05/0.3387, allocations: 132.5 kB / 1.024 GB, free: 4.113 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001841/0.3389, allocations: 183.2 kB / 1.024 GB, free: 3.926 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.106e-05/0.3389, allocations: 25.7 kB / 1.024 GB, free: 3.895 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001037/0.339, allocations: 143.8 kB / 1.024 GB, free: 3.746 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.952e-05/0.3391, allocations: 23.69 kB / 1.024 GB, free: 3.723 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.095e-05/0.3391, allocations: 33.72 kB / 1.024 GB, free: 3.684 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001761/0.3393, allocations: 326.8 kB / 1.025 GB, free: 3.355 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.709e-05/0.3394, allocations: 35.97 kB / 1.025 GB, free: 3.32 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001728/0.3396, allocations: 113.4 kB / 1.025 GB, free: 3.176 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002875/0.3399, allocations: 226.3 kB / 1.025 GB, free: 2.902 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/0.3399, allocations: 4 kB / 1.025 GB, free: 2.898 MB / 0.795 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000376/0.3403, allocations: 244.6 kB / 1.025 GB, free: 2.641 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 5.866e-05/0.3404, allocations: 63.39 kB / 1.025 GB, free: 2.566 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.3404, allocations: 7.938 kB / 1.025 GB, free: 2.559 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/0.3404, allocations: 4 kB / 1.025 GB, free: 2.555 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001207/0.3405, allocations: 32.23 kB / 1.025 GB, free: 2.523 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.716e-06/0.3405, allocations: 8 kB / 1.026 GB, free: 2.516 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001387/0.3407, allocations: 27.83 kB / 1.026 GB, free: 2.488 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.53e-05/0.3407, allocations: 8 kB / 1.026 GB, free: 2.48 MB / 0.795 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.000179/0.3409, allocations: 172.1 kB / 1.026 GB, free: 2.297 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.356e-05/0.3409, allocations: 15.75 kB / 1.026 GB, free: 2.281 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.108e-05/0.341, allocations: 17.34 kB / 1.026 GB, free: 2.27 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.341, allocations: 3.984 kB / 1.026 GB, free: 2.266 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.341, allocations: 8 kB / 1.026 GB, free: 2.258 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.341, allocations: 0 / 1.026 GB, free: 2.258 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001888/0.3412, allocations: 205.6 kB / 1.026 GB, free: 2.008 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.3412, allocations: 3.984 kB / 1.026 GB, free: 2.004 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.961e-05/0.3413, allocations: 8 kB / 1.026 GB, free: 1.996 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.3413, allocations: 0 / 1.026 GB, free: 1.996 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.6e-05/0.3413, allocations: 7.938 kB / 1.026 GB, free: 1.988 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.3413, allocations: 0 / 1.026 GB, free: 1.988 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.3413, allocations: 0 / 1.026 GB, free: 1.988 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004367/0.3418, allocations: 214.6 kB / 1.026 GB, free: 1.754 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 6.634e-05/0.3418, allocations: 92.94 kB / 1.026 GB, free: 1.645 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.295e-05/0.3419, allocations: 11.94 kB / 1.026 GB, free: 1.633 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.18e-05/0.342, allocations: 4 kB / 1.026 GB, free: 1.629 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.427e-05/0.342, allocations: 11.98 kB / 1.026 GB, free: 1.617 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.071e-05/0.342, allocations: 4 kB / 1.026 GB, free: 1.613 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001133/0.3422, allocations: 136.8 kB / 1.026 GB, free: 1.48 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.8e-07/0.3422, allocations: 8 kB / 1.026 GB, free: 1.473 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002411/0.3424, allocations: 28 kB / 1.026 GB, free: 1.445 MB / 0.795 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.0001153/0.3425, allocations: 103.2 kB / 1.027 GB, free: 1.332 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0003411/0.3429, allocations: 218.6 kB / 1.027 GB, free: 1.094 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.3429, allocations: 0 / 1.027 GB, free: 1.094 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001322/0.343, allocations: 108 kB / 1.027 GB, free: 0.9766 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002362/0.3433, allocations: 27.91 kB / 1.027 GB, free: 0.9492 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005984/0.3439, allocations: 320.3 kB / 1.027 GB, free: 0.6055 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004658/0.3444, allocations: 0.7158 MB / 1.028 GB, free: 15.86 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.56e-05/0.3444, allocations: 15.44 kB / 1.028 GB, free: 15.85 MB / 0.8106 GB Notification: Performance of SimCode: time 2.4e-07/0.3444, allocations: 0 / 1.028 GB, free: 15.85 MB / 0.8106 GB Notification: Performance of Templates: time 0.003708/0.3481, allocations: 1.708 MB / 1.03 GB, free: 14.15 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.makefile (rm -f Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & ./Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches