Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.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_latest_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_latest_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.001649/0.001649, allocations: 105.4 kB / 15.98 MB, free: 6.352 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.00183/0.00183, allocations: 191.6 kB / 16.91 MB, free: 6.188 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.347/1.347, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.543/2.543, allocations: 469.4 MB / 0.7423 GB, free: 3.797 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001528/0.001528, allocations: 60.44 kB / 0.9083 GB, free: 14.46 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3173/0.3188, allocations: 159.1 MB / 1.064 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.002797/0.3216, allocations: 1.479 MB / 1.065 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.003129/0.3248, allocations: 2.639 MB / 1.068 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.568e-05/0.3249, allocations: 0 / 1.068 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001849/0.3267, allocations: 0.5551 MB / 1.068 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.608e-05/0.3268, allocations: 19.91 kB / 1.068 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 5.601e-06/0.3268, allocations: 4 kB / 1.068 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002434/0.3271, allocations: 158.9 kB / 1.068 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 7.684e-05/0.3272, allocations: 32.41 kB / 1.068 GB, free: 10.45 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 8.468e-05/0.3272, allocations: 59.72 kB / 1.069 GB, free: 10.39 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001382/0.3274, allocations: 79.59 kB / 1.069 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.372e-05/0.3274, allocations: 0 / 1.069 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001054/0.3285, allocations: 499.2 kB / 1.069 GB, free: 9.824 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 6.191e-05/0.3285, allocations: 35.83 kB / 1.069 GB, free: 9.789 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 9.619e-05/0.3287, allocations: 103.4 kB / 1.069 GB, free: 9.688 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0003445/0.329, allocations: 298.8 kB / 1.07 GB, free: 9.395 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.329, allocations: 0 / 1.07 GB, free: 9.395 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.332e-06/0.329, allocations: 0 / 1.07 GB, free: 9.395 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 7.324e-06/0.329, allocations: 3.938 kB / 1.07 GB, free: 9.391 MB / 0.8419 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.0007714/0.3298, allocations: 0.5412 MB / 1.07 GB, free: 8.797 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.3299, allocations: 12.62 kB / 1.07 GB, free: 8.785 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001675/0.33, allocations: 107.9 kB / 1.07 GB, free: 8.68 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002424/0.3303, allocations: 302.3 kB / 1.07 GB, free: 8.348 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.14e-05/0.3304, allocations: 158.9 kB / 1.071 GB, free: 8.191 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.247e-05/0.3304, allocations: 150.9 kB / 1.071 GB, free: 8.043 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.505e-05/0.3305, allocations: 105.5 kB / 1.071 GB, free: 7.934 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.613e-05/0.3305, allocations: 75.47 kB / 1.071 GB, free: 7.859 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.108e-05/0.3306, allocations: 162.5 kB / 1.071 GB, free: 7.699 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.778e-05/0.3306, allocations: 150.6 kB / 1.071 GB, free: 7.551 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.737e-05/0.3307, allocations: 150.6 kB / 1.071 GB, free: 7.402 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003788/0.3311, allocations: 0.5289 MB / 1.072 GB, free: 6.824 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 8.7e-05/0.3312, allocations: 177.1 kB / 1.072 GB, free: 6.641 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.378e-05/0.3312, allocations: 80.14 kB / 1.072 GB, free: 6.559 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.958e-05/0.3312, allocations: 75.28 kB / 1.072 GB, free: 6.484 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.464e-05/0.3313, allocations: 109.8 kB / 1.072 GB, free: 6.367 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=0): time 1.643e-06/0.3313, allocations: 0 / 1.072 GB, free: 6.367 MB / 0.8419 GB Notification: Performance of matching and sorting (n=0): time 0.0001771/0.3315, allocations: 57.34 kB / 1.072 GB, free: 6.305 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.813e-05/0.3316, allocations: 130.7 kB / 1.072 GB, free: 6.164 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004559/0.332, allocations: 437.1 kB / 1.073 GB, free: 5.727 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.72e-05/0.332, allocations: 25.7 kB / 1.073 GB, free: 5.695 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 9.481e-05/0.3321, allocations: 136.5 kB / 1.073 GB, free: 5.559 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.434e-06/0.3322, allocations: 0 / 1.073 GB, free: 5.559 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.578e-05/0.3322, allocations: 93.66 kB / 1.073 GB, free: 5.461 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001171/0.3324, allocations: 334.8 kB / 1.073 GB, free: 5.125 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001178/0.3325, allocations: 100.5 kB / 1.074 GB, free: 5.027 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001553/0.3327, allocations: 169.3 kB / 1.074 GB, free: 4.84 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002984/0.333, allocations: 305.5 kB / 1.074 GB, free: 4.52 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.333, allocations: 4 kB / 1.074 GB, free: 4.516 MB / 0.8419 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0004879/0.3335, allocations: 321.1 kB / 1.074 GB, free: 4.195 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/0.3335, allocations: 12.09 kB / 1.074 GB, free: 4.184 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.3335, allocations: 3.938 kB / 1.074 GB, free: 4.18 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.399e-05/0.3335, allocations: 4 kB / 1.074 GB, free: 4.176 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.703e-06/0.3335, allocations: 0 / 1.074 GB, free: 4.176 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.207e-06/0.3336, allocations: 7.938 kB / 1.074 GB, free: 4.168 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001453/0.3337, allocations: 51.27 kB / 1.074 GB, free: 4.117 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.117e-05/0.3337, allocations: 4 kB / 1.074 GB, free: 4.113 MB / 0.8419 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.0002249/0.334, allocations: 253 kB / 1.075 GB, free: 3.855 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.1e-05/0.334, allocations: 120.7 kB / 1.075 GB, free: 3.73 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.372e-05/0.3341, allocations: 114.8 kB / 1.075 GB, free: 3.609 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.903e-05/0.3342, allocations: 184.2 kB / 1.075 GB, free: 3.422 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.333e-05/0.3342, allocations: 180.2 kB / 1.075 GB, free: 3.238 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.733e-05/0.3343, allocations: 180.3 kB / 1.075 GB, free: 3.055 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002949/0.3346, allocations: 473.2 kB / 1.076 GB, free: 2.535 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.813e-05/0.3346, allocations: 104.9 kB / 1.076 GB, free: 2.426 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.637e-05/0.3347, allocations: 109 kB / 1.076 GB, free: 2.312 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.155e-05/0.3347, allocations: 184.2 kB / 1.076 GB, free: 2.125 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.139e-05/0.3348, allocations: 180.2 kB / 1.076 GB, free: 1.941 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.626e-05/0.3349, allocations: 176.3 kB / 1.077 GB, free: 1.762 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.549e-05/0.3349, allocations: 192.2 kB / 1.077 GB, free: 1.566 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001454/0.3351, allocations: 327.4 kB / 1.077 GB, free: 1.223 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 9.635e-05/0.3352, allocations: 197.8 kB / 1.077 GB, free: 1.004 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.574e-05/0.3353, allocations: 180.2 kB / 1.077 GB, free: 0.8203 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001289/0.3354, allocations: 116.9 kB / 1.078 GB, free: 0.6992 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.564e-05/0.3355, allocations: 188.2 kB / 1.078 GB, free: 0.5078 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.056e-05/0.3355, allocations: 104.9 kB / 1.078 GB, free: 408 kB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002556/0.3358, allocations: 275.1 kB / 1.078 GB, free: 136 kB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3358, allocations: 0 / 1.078 GB, free: 136 kB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000368/0.3362, allocations: 80 kB / 1.078 GB, free: 56 kB / 0.8419 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.5077/0.8438, allocations: 295.1 kB / 1.078 GB, free: 23.34 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003269/0.8442, allocations: 162.9 kB / 1.079 GB, free: 23.34 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.8442, allocations: 3.828 kB / 1.079 GB, free: 23.34 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 2.765e-06/0.8442, allocations: 4.938 kB / 1.079 GB, free: 23.34 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004136/0.8446, allocations: 465.8 kB / 1.079 GB, free: 22.9 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006699/0.8453, allocations: 0.5567 MB / 1.08 GB, free: 22.55 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002341/0.8455, allocations: 0.7771 MB / 1.08 GB, free: 21.86 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.779e-05/0.8456, allocations: 10.5 kB / 1.08 GB, free: 21.85 MB / 0.8419 GB Notification: Performance of SimCode: time 3.21e-07/0.8456, allocations: 0 / 1.08 GB, free: 21.85 MB / 0.8419 GB Notification: Performance of Templates: time 0.005871/0.8515, allocations: 3.055 MB / 1.083 GB, free: 21.64 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.makefile (rm -f Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; mkfifo Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe >> ../files/Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.sim & ./Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches