Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.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.Transmission.Functions.Validation.SelectCable_med,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cab.1..Amp|cab.2..Amp|cab.3..Amp|cab.4..Amp|cab.5..Amp|cab.6..Amp|cab.7..Amp",fileNamePrefix="Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med") translateModel(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cab.1..Amp|cab.2..Amp|cab.3..Amp|cab.4..Amp|cab.5..Amp|cab.6..Amp|cab.7..Amp",fileNamePrefix="Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001141/0.001141, allocations: 97.41 kB / 15.36 MB, free: 0.7344 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.009468/0.009468, allocations: 169.5 kB / 16.26 MB, free: 6.652 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.457/1.457, allocations: 223.3 MB / 240.3 MB, free: 5.344 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.561/2.561, allocations: 390.9 MB / 0.6663 GB, free: 2.371 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003837/0.0003837, allocations: 8 kB / 0.816 GB, free: 13.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8305/0.8309, allocations: 142.4 MB / 0.955 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.001384/0.8323, allocations: 1.137 MB / 0.9561 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002533/0.8349, allocations: 2.607 MB / 0.9587 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.125e-05/0.8349, allocations: 0 / 0.9587 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001355/0.8363, allocations: 0.5474 MB / 0.9592 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.116e-05/0.8363, allocations: 15.59 kB / 0.9592 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 4.047e-06/0.8364, allocations: 2.031 kB / 0.9592 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002432/0.8366, allocations: 173 kB / 0.9594 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 6.893e-05/0.8367, allocations: 37.59 kB / 0.9594 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.55e-05/0.8367, allocations: 53.91 kB / 0.9595 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001208/0.8369, allocations: 80.83 kB / 0.9596 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.396e-05/0.8369, allocations: 2.75 kB / 0.9596 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009458/0.8378, allocations: 496.2 kB / 0.96 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.221e-05/0.8379, allocations: 35.11 kB / 0.9601 GB, free: 4 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001108/0.838, allocations: 125 kB / 0.9602 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005376/0.8386, allocations: 388.1 kB / 0.9606 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.8386, allocations: 4 kB / 0.9606 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.064e-06/0.8386, allocations: 0.7812 kB / 0.9606 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.731e-06/0.8386, allocations: 0 / 0.9606 GB, free: 3.691 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0006643/0.8393, allocations: 0.5327 MB / 0.9611 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.8393, allocations: 8.656 kB / 0.9611 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001422/0.8395, allocations: 99.59 kB / 0.9612 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002016/0.8397, allocations: 301.4 kB / 0.9615 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.371e-05/0.8397, allocations: 157.2 kB / 0.9616 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.905e-05/0.8398, allocations: 152.9 kB / 0.9618 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.457e-05/0.8398, allocations: 105.5 kB / 0.9619 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.8399, allocations: 84.38 kB / 0.962 GB, free: 2.305 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.32e-05/0.8399, allocations: 154.5 kB / 0.9621 GB, free: 2.152 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.124e-05/0.8399, allocations: 155.7 kB / 0.9623 GB, free: 2 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.422e-05/0.8399, allocations: 154.5 kB / 0.9624 GB, free: 1.848 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002846/0.8402, allocations: 0.5308 MB / 0.9629 GB, free: 1.305 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 5.073e-05/0.8403, allocations: 170.3 kB / 0.9631 GB, free: 1.129 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.93e-05/0.8403, allocations: 85.27 kB / 0.9632 GB, free: 1.043 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.491e-05/0.8403, allocations: 75.28 kB / 0.9632 GB, free: 0.9688 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.704e-05/0.8404, allocations: 114.9 kB / 0.9633 GB, free: 0.8477 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=0): time 1.022e-06/0.8404, allocations: 0 / 0.9633 GB, free: 0.8477 MB / 0.7169 GB Notification: Performance of matching and sorting (n=0): time 0.0001699/0.8405, allocations: 53.11 kB / 0.9634 GB, free: 0.8008 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.192e-05/0.8406, allocations: 127.7 kB / 0.9635 GB, free: 0.6641 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004152/0.841, allocations: 431.4 kB / 0.9639 GB, free: 400 kB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.141e-05/0.841, allocations: 34.8 kB / 0.964 GB, free: 360 kB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.514e-05/0.8411, allocations: 133.7 kB / 0.9641 GB, free: 232 kB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.767e-06/0.8411, allocations: 1 kB / 0.9641 GB, free: 232 kB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.393e-05/0.8412, allocations: 76.91 kB / 0.9642 GB, free: 180 kB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001312/0.8413, allocations: 334.9 kB / 0.9645 GB, free: 15.85 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001315/0.8415, allocations: 99.16 kB / 0.9646 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001892/0.8416, allocations: 167.5 kB / 0.9647 GB, free: 15.67 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003405/0.842, allocations: 301.8 kB / 0.965 GB, free: 15.49 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.842, allocations: 0 / 0.965 GB, free: 15.49 MB / 0.7325 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0005229/0.8425, allocations: 332.5 kB / 0.9653 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.8426, allocations: 6.219 kB / 0.9654 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.8426, allocations: 6.578 kB / 0.9654 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.8426, allocations: 6.688 kB / 0.9654 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.415e-06/0.8426, allocations: 1.156 kB / 0.9654 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.718e-06/0.8426, allocations: 6.234 kB / 0.9654 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001924/0.8428, allocations: 48.69 kB / 0.9654 GB, free: 15.26 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.664e-05/0.8428, allocations: 7.984 kB / 0.9654 GB, free: 15.25 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 (cab[1].material,cab[2].material,cab[3].material,cab[4].material,cab[5].material,cab[6].material,cab[7].material) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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.0002243/0.8431, allocations: 242.8 kB / 0.9657 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.32e-05/0.8432, allocations: 128.2 kB / 0.9658 GB, free: 14.91 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.483e-05/0.8432, allocations: 121.3 kB / 0.9659 GB, free: 14.79 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.092e-05/0.8433, allocations: 185.5 kB / 0.9661 GB, free: 14.6 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.199e-05/0.8434, allocations: 177.6 kB / 0.9662 GB, free: 14.42 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.421e-05/0.8434, allocations: 185.5 kB / 0.9664 GB, free: 14.23 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003158/0.8438, allocations: 476.8 kB / 0.9669 GB, free: 13.74 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.633e-05/0.8438, allocations: 106.3 kB / 0.967 GB, free: 13.63 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.961e-05/0.8439, allocations: 108.9 kB / 0.9671 GB, free: 13.52 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.248e-05/0.8439, allocations: 181.3 kB / 0.9673 GB, free: 13.34 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.397e-05/0.844, allocations: 189.5 kB / 0.9674 GB, free: 13.14 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.511e-05/0.8441, allocations: 177.5 kB / 0.9676 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.655e-05/0.8442, allocations: 181.8 kB / 0.9678 GB, free: 12.78 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001645/0.8443, allocations: 332.5 kB / 0.9681 GB, free: 12.44 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00012/0.8445, allocations: 200.9 kB / 0.9683 GB, free: 12.23 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001056/0.8446, allocations: 181.4 kB / 0.9685 GB, free: 12.04 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001374/0.8447, allocations: 113.9 kB / 0.9686 GB, free: 11.93 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.896e-05/0.8448, allocations: 181.5 kB / 0.9687 GB, free: 11.74 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.885e-05/0.8448, allocations: 106.3 kB / 0.9688 GB, free: 11.63 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002754/0.8451, allocations: 276.9 kB / 0.9691 GB, free: 11.47 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8451, allocations: 0 / 0.9691 GB, free: 11.47 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004244/0.8456, allocations: 77.09 kB / 0.9692 GB, free: 11.46 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.0004412/0.846, allocations: 300.7 kB / 0.9695 GB, free: 11.23 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002638/0.8463, allocations: 160.9 kB / 0.9696 GB, free: 11.14 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 6.381e-06/0.8463, allocations: 4.062 kB / 0.9696 GB, free: 11.14 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 1.413e-06/0.8463, allocations: 0 / 0.9696 GB, free: 11.14 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000513/0.8468, allocations: 0.5298 MB / 0.9701 GB, free: 10.61 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008241/0.8477, allocations: 0.5533 MB / 0.9707 GB, free: 10.19 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004235/0.8481, allocations: 0.7777 MB / 0.9714 GB, free: 9.445 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 1.686e-05/0.8481, allocations: 6.969 kB / 0.9714 GB, free: 9.441 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.378e-05/0.8481, allocations: 9.469 kB / 0.9715 GB, free: 9.434 MB / 0.7325 GB Notification: Performance of SimCode: time 2.41e-07/0.8482, allocations: 0 / 0.9715 GB, free: 9.434 MB / 0.7325 GB Notification: Performance of Templates: time 0.006851/0.855, allocations: 2.805 MB / 0.9742 GB, free: 7.98 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.makefile (rm -f Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; mkfifo Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe >> ../files/Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.sim & ./Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches