Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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_low,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_low") translateModel(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low,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_low") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001148/0.001148, allocations: 91.3 kB / 15.36 MB, free: 0.7383 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.0123/0.0123, allocations: 171.8 kB / 16.26 MB, free: 6.613 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.566/1.566, allocations: 223.3 MB / 240.3 MB, free: 5.367 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.798/2.798, allocations: 443.3 MB / 0.7175 GB, free: 1.441 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003537/0.0003538, allocations: 9.266 kB / 0.8796 GB, free: 41.51 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3634/0.3638, allocations: 155.2 MB / 1.031 GB, free: 4.246 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low): time 0.002313/0.3662, allocations: 1.124 MB / 1.032 GB, free: 3.109 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003333/0.3695, allocations: 1.879 MB / 1.034 GB, free: 1.227 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.766e-05/0.3696, allocations: 0 / 1.034 GB, free: 1.227 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001365/0.371, allocations: 378.1 kB / 1.034 GB, free: 0.8555 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 6.049e-05/0.3711, allocations: 11.92 kB / 1.034 GB, free: 0.8438 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 4.448e-06/0.3711, allocations: 0 / 1.034 GB, free: 0.8438 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003191/0.3714, allocations: 139.1 kB / 1.035 GB, free: 0.707 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 8.866e-05/0.3715, allocations: 25.48 kB / 1.035 GB, free: 0.6758 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.24e-05/0.3716, allocations: 35.88 kB / 1.035 GB, free: 0.6406 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000147/0.3717, allocations: 67.64 kB / 1.035 GB, free: 0.5742 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.985e-05/0.3718, allocations: 4 kB / 1.035 GB, free: 0.5703 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000672/0.3724, allocations: 179.9 kB / 1.035 GB, free: 404 kB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 7.04e-05/0.3725, allocations: 31.84 kB / 1.035 GB, free: 372 kB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001161/0.3726, allocations: 101.2 kB / 1.035 GB, free: 264 kB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005828/0.3732, allocations: 283.3 kB / 1.035 GB, free: 15.98 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3733, allocations: 3.938 kB / 1.035 GB, free: 15.97 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.295e-06/0.3733, allocations: 4 kB / 1.035 GB, free: 15.97 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.925e-06/0.3733, allocations: 0 / 1.035 GB, free: 15.97 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.001013/0.3743, allocations: 482.4 kB / 1.036 GB, free: 15.45 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 5.093e-05/0.3744, allocations: 11.98 kB / 1.036 GB, free: 15.44 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002468/0.3746, allocations: 96.03 kB / 1.036 GB, free: 15.35 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003157/0.375, allocations: 287.3 kB / 1.036 GB, free: 15.03 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.233e-05/0.375, allocations: 158.9 kB / 1.036 GB, free: 14.88 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.577e-05/0.3751, allocations: 154.9 kB / 1.036 GB, free: 14.72 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.92e-05/0.3752, allocations: 109 kB / 1.036 GB, free: 14.61 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.499e-05/0.3753, allocations: 83.22 kB / 1.037 GB, free: 14.53 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.048e-05/0.3754, allocations: 150.6 kB / 1.037 GB, free: 14.38 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-05/0.3754, allocations: 150.6 kB / 1.037 GB, free: 14.23 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.309e-05/0.3755, allocations: 158.5 kB / 1.037 GB, free: 14.07 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005148/0.376, allocations: 0.5055 MB / 1.037 GB, free: 13.52 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002513/0.3763, allocations: 169.1 kB / 1.038 GB, free: 13.34 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.488e-05/0.3764, allocations: 80.14 kB / 1.038 GB, free: 13.26 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001472/0.3765, allocations: 83.28 kB / 1.038 GB, free: 13.18 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.077e-05/0.3766, allocations: 109.8 kB / 1.038 GB, free: 13.06 MB / 0.795 GB Notification: Performance of pre-optimization done (n=0): time 1.924e-06/0.3766, allocations: 4 kB / 1.038 GB, free: 13.06 MB / 0.795 GB Notification: Performance of matching and sorting (n=0): time 0.0002849/0.3769, allocations: 45.5 kB / 1.038 GB, free: 13.01 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.611e-05/0.377, allocations: 130.6 kB / 1.038 GB, free: 12.87 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005266/0.3776, allocations: 322.3 kB / 1.038 GB, free: 12.54 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.157e-05/0.3776, allocations: 29.7 kB / 1.038 GB, free: 12.5 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.3777, allocations: 116.5 kB / 1.039 GB, free: 12.39 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.276e-06/0.3777, allocations: 0 / 1.039 GB, free: 12.39 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.445e-05/0.3778, allocations: 45.69 kB / 1.039 GB, free: 12.34 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0002514/0.3781, allocations: 334.8 kB / 1.039 GB, free: 12 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000134/0.3782, allocations: 63.95 kB / 1.039 GB, free: 11.94 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001672/0.3784, allocations: 118 kB / 1.039 GB, free: 11.8 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004473/0.3789, allocations: 213.8 kB / 1.039 GB, free: 11.57 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.3789, allocations: 0 / 1.039 GB, free: 11.57 MB / 0.795 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006033/0.3795, allocations: 233.1 kB / 1.039 GB, free: 11.34 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.438e-05/0.3795, allocations: 8 kB / 1.039 GB, free: 11.33 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.3795, allocations: 0 / 1.039 GB, free: 11.33 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.3796, allocations: 4 kB / 1.039 GB, free: 11.32 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.7e-06/0.3796, allocations: 8.203 kB / 1.04 GB, free: 11.32 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.07e-05/0.3796, allocations: 7.938 kB / 1.04 GB, free: 11.31 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001927/0.3798, allocations: 23.62 kB / 1.04 GB, free: 11.29 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.802e-05/0.3798, allocations: 4 kB / 1.04 GB, free: 11.28 MB / 0.795 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.0002683/0.3801, allocations: 230.5 kB / 1.04 GB, free: 11.05 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001019/0.3802, allocations: 120.6 kB / 1.04 GB, free: 10.92 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.157e-05/0.3803, allocations: 121.7 kB / 1.04 GB, free: 10.8 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.692e-05/0.3804, allocations: 184.2 kB / 1.04 GB, free: 10.61 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.533e-05/0.3805, allocations: 184.2 kB / 1.04 GB, free: 10.43 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001054/0.3806, allocations: 176.3 kB / 1.041 GB, free: 10.25 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006523/0.3812, allocations: 457.2 kB / 1.041 GB, free: 9.742 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.414e-05/0.3813, allocations: 104.9 kB / 1.041 GB, free: 9.633 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.214e-05/0.3814, allocations: 112.9 kB / 1.041 GB, free: 9.516 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001344/0.3815, allocations: 188.2 kB / 1.041 GB, free: 9.324 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.968e-05/0.3816, allocations: 176.3 kB / 1.042 GB, free: 9.145 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.952e-05/0.3817, allocations: 176.3 kB / 1.042 GB, free: 8.965 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.839e-05/0.3818, allocations: 184.2 kB / 1.042 GB, free: 8.777 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002562/0.382, allocations: 323.6 kB / 1.042 GB, free: 8.438 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001407/0.3822, allocations: 197.8 kB / 1.042 GB, free: 8.219 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001149/0.3823, allocations: 176.3 kB / 1.043 GB, free: 8.039 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002179/0.3825, allocations: 108.9 kB / 1.043 GB, free: 7.926 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.502e-05/0.3826, allocations: 176.3 kB / 1.043 GB, free: 7.746 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.992e-05/0.3827, allocations: 116.9 kB / 1.043 GB, free: 7.625 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0003006/0.383, allocations: 213.9 kB / 1.043 GB, free: 7.418 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.7e-07/0.383, allocations: 0 / 1.043 GB, free: 7.418 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0005595/0.3836, allocations: 63.98 kB / 1.043 GB, free: 7.355 MB / 0.795 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.0005955/0.3842, allocations: 274.8 kB / 1.043 GB, free: 7.074 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002876/0.3845, allocations: 103.9 kB / 1.044 GB, free: 6.973 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.3845, allocations: 0 / 1.044 GB, free: 6.973 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 2.524e-06/0.3845, allocations: 0 / 1.044 GB, free: 6.973 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006983/0.3852, allocations: 0.535 MB / 1.044 GB, free: 6.434 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009479/0.3862, allocations: 445.9 kB / 1.044 GB, free: 5.969 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005959/0.3868, allocations: 0.7355 MB / 1.045 GB, free: 5.207 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 2.34e-05/0.3868, allocations: 3.938 kB / 1.045 GB, free: 5.203 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.896e-05/0.3869, allocations: 11.44 kB / 1.045 GB, free: 5.191 MB / 0.795 GB Notification: Performance of SimCode: time 6.41e-07/0.3869, allocations: 4 kB / 1.045 GB, free: 5.188 MB / 0.795 GB Notification: Performance of Templates: time 0.009381/0.3963, allocations: 2.219 MB / 1.047 GB, free: 2.98 MB / 0.795 GB make -j1 -f Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low.makefile (rm -f Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low.pipe ; mkfifo Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low.pipe >> ../files/Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low.sim & ./Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_Transmission_Functions_Validation_SelectCable_low.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches