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 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.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.001127/0.001126, 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.001254/0.001254, allocations: 195.6 kB / 16.26 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.376/1.376, allocations: 222.9 MB / 239.9 MB, free: 4.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.814/2.814, allocations: 472.6 MB / 0.7448 GB, free: 4.859 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001552/0.001552, allocations: 66.56 kB / 0.9116 GB, free: 33.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3283/0.3299, allocations: 159.9 MB / 1.068 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.00281/0.3327, allocations: 1.475 MB / 1.069 GB, free: 9.297 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003137/0.3359, allocations: 2.639 MB / 1.072 GB, free: 6.648 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.185e-05/0.336, allocations: 0 / 1.072 GB, free: 6.648 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001727/0.3377, allocations: 0.5673 MB / 1.072 GB, free: 6.082 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.531e-05/0.3378, allocations: 11.92 kB / 1.072 GB, free: 6.07 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 4.649e-06/0.3378, allocations: 4 kB / 1.072 GB, free: 6.066 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002672/0.3381, allocations: 159 kB / 1.072 GB, free: 5.91 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 6.77e-05/0.3382, allocations: 32.41 kB / 1.072 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.41e-05/0.3383, allocations: 63.72 kB / 1.073 GB, free: 5.816 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001443/0.3384, allocations: 79.58 kB / 1.073 GB, free: 5.738 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.616e-05/0.3384, allocations: 4 kB / 1.073 GB, free: 5.734 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001073/0.3395, allocations: 495.1 kB / 1.073 GB, free: 5.25 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 6.907e-05/0.3396, allocations: 35.83 kB / 1.073 GB, free: 5.215 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001139/0.3397, allocations: 99.36 kB / 1.073 GB, free: 5.117 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006293/0.3403, allocations: 394.4 kB / 1.074 GB, free: 4.73 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.3404, allocations: 0 / 1.074 GB, free: 4.73 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.563e-06/0.3404, allocations: 4 kB / 1.074 GB, free: 4.727 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.037e-06/0.3404, allocations: 0 / 1.074 GB, free: 4.727 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0008435/0.3412, allocations: 0.5529 MB / 1.074 GB, free: 4.121 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.3413, allocations: 8.031 kB / 1.074 GB, free: 4.113 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001638/0.3414, allocations: 99.94 kB / 1.074 GB, free: 4.016 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002587/0.3417, allocations: 306.3 kB / 1.075 GB, free: 3.68 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.846e-05/0.3418, allocations: 150.9 kB / 1.075 GB, free: 3.531 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.331e-05/0.3419, allocations: 166.9 kB / 1.075 GB, free: 3.367 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.7e-05/0.3419, allocations: 105.5 kB / 1.075 GB, free: 3.258 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.21e-05/0.342, allocations: 75.47 kB / 1.075 GB, free: 3.184 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.975e-05/0.342, allocations: 154.5 kB / 1.075 GB, free: 3.031 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.825e-05/0.3421, allocations: 150.6 kB / 1.075 GB, free: 2.883 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.092e-05/0.3421, allocations: 154.5 kB / 1.075 GB, free: 2.73 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000362/0.3425, allocations: 0.5367 MB / 1.076 GB, free: 2.145 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 7.859e-05/0.3426, allocations: 173.1 kB / 1.076 GB, free: 1.965 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.876e-05/0.3426, allocations: 80.14 kB / 1.076 GB, free: 1.883 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.704e-05/0.3426, allocations: 75.28 kB / 1.076 GB, free: 1.809 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.612e-05/0.3427, allocations: 109.8 kB / 1.076 GB, free: 1.691 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=0): time 1.042e-06/0.3427, allocations: 4 kB / 1.076 GB, free: 1.688 MB / 0.8262 GB Notification: Performance of matching and sorting (n=0): time 0.000173/0.3429, allocations: 57.3 kB / 1.076 GB, free: 1.625 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.428e-05/0.3429, allocations: 126.7 kB / 1.077 GB, free: 1.488 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004034/0.3434, allocations: 433.2 kB / 1.077 GB, free: 1.059 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.937e-05/0.3434, allocations: 29.7 kB / 1.077 GB, free: 1.023 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.678e-05/0.3435, allocations: 132.4 kB / 1.077 GB, free: 0.8906 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.046e-06/0.3435, allocations: 0 / 1.077 GB, free: 0.8906 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.771e-05/0.3436, allocations: 93.66 kB / 1.077 GB, free: 0.793 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001222/0.3437, allocations: 342.8 kB / 1.078 GB, free: 460 kB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001103/0.3438, allocations: 96.5 kB / 1.078 GB, free: 364 kB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001482/0.344, allocations: 165.3 kB / 1.078 GB, free: 176 kB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003035/0.3443, allocations: 309.6 kB / 1.078 GB, free: 15.85 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.3443, allocations: 0 / 1.078 GB, free: 15.85 MB / 0.8419 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0004749/0.3448, allocations: 321 kB / 1.078 GB, free: 15.53 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.3448, allocations: 5.406 kB / 1.078 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.195e-05/0.3448, allocations: 11.88 kB / 1.078 GB, free: 15.51 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.585e-05/0.3448, allocations: 0 / 1.078 GB, free: 15.51 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.079e-06/0.3448, allocations: 11.92 kB / 1.078 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.3449, allocations: 0 / 1.078 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001493/0.345, allocations: 51.28 kB / 1.078 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.224e-05/0.345, allocations: 4 kB / 1.078 GB, free: 15.45 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.0002324/0.3453, allocations: 245.2 kB / 1.079 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.785e-05/0.3453, allocations: 124.6 kB / 1.079 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.831e-05/0.3454, allocations: 126.7 kB / 1.079 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-05/0.3455, allocations: 176.3 kB / 1.079 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.799e-05/0.3456, allocations: 180.2 kB / 1.079 GB, free: 14.57 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.95e-05/0.3456, allocations: 188.2 kB / 1.079 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000292/0.3459, allocations: 477.1 kB / 1.08 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.11e-05/0.346, allocations: 105 kB / 1.08 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.575e-05/0.346, allocations: 101.1 kB / 1.08 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.351e-05/0.3461, allocations: 184.3 kB / 1.08 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.158e-05/0.3462, allocations: 196.2 kB / 1.08 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.725e-05/0.3462, allocations: 180.2 kB / 1.081 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.204e-05/0.3463, allocations: 176.3 kB / 1.081 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001763/0.3465, allocations: 331.4 kB / 1.081 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001066/0.3466, allocations: 197.8 kB / 1.081 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001061/0.3467, allocations: 192.1 kB / 1.082 GB, free: 12.13 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000131/0.3468, allocations: 101 kB / 1.082 GB, free: 12.02 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.235e-05/0.3469, allocations: 180.2 kB / 1.082 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.658e-05/0.347, allocations: 101 kB / 1.082 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002688/0.3472, allocations: 283.1 kB / 1.082 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3472, allocations: 3.938 kB / 1.082 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003521/0.3476, allocations: 83.98 kB / 1.082 GB, free: 11.37 MB / 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.0003609/0.348, allocations: 302.4 kB / 1.083 GB, free: 11.07 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002211/0.3482, allocations: 159.9 kB / 1.083 GB, free: 10.91 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3482, allocations: 0 / 1.083 GB, free: 10.91 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 4.648e-06/0.3482, allocations: 3.938 kB / 1.083 GB, free: 10.91 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004041/0.3486, allocations: 468 kB / 1.083 GB, free: 10.45 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006493/0.3493, allocations: 0.5415 MB / 1.084 GB, free: 9.879 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003126/0.3496, allocations: 0.7782 MB / 1.084 GB, free: 9.074 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 1.346e-05/0.3496, allocations: 0 / 1.084 GB, free: 9.074 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.046e-05/0.3496, allocations: 11.44 kB / 1.084 GB, free: 9.062 MB / 0.8419 GB Notification: Performance of SimCode: time 2.21e-07/0.3497, allocations: 0 / 1.084 GB, free: 9.062 MB / 0.8419 GB Notification: Performance of Templates: time 0.006058/0.3557, allocations: 2.909 MB / 1.087 GB, free: 6.16 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/jenkins/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