Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001378/0.001378, allocations: 102.2 kB / 16.27 MB, free: 6 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.001293/0.001293, allocations: 191 kB / 17.2 MB, free: 5.609 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.408/1.408, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.731/2.731, allocations: 469.8 MB / 0.743 GB, free: 3.391 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00197/0.00197, allocations: 72.91 kB / 0.9092 GB, free: 13.89 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3643/0.3663, allocations: 159.1 MB / 1.065 GB, free: 14.78 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.003034/0.3694, allocations: 1.422 MB / 1.066 GB, free: 13.35 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.003735/0.3732, allocations: 2.666 MB / 1.069 GB, free: 10.67 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.944e-05/0.3732, allocations: 0 / 1.069 GB, free: 10.67 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001779/0.3751, allocations: 0.5866 MB / 1.069 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.942e-05/0.3751, allocations: 19.91 kB / 1.069 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 6.272e-06/0.3751, allocations: 0 / 1.069 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002941/0.3754, allocations: 155 kB / 1.069 GB, free: 9.914 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 8.939e-05/0.3755, allocations: 32.41 kB / 1.069 GB, free: 9.883 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 7.838e-05/0.3756, allocations: 63.66 kB / 1.069 GB, free: 9.82 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001534/0.3758, allocations: 75.59 kB / 1.07 GB, free: 9.746 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.236e-05/0.3758, allocations: 4 kB / 1.07 GB, free: 9.742 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001145/0.377, allocations: 475.2 kB / 1.07 GB, free: 9.277 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 6.687e-05/0.377, allocations: 31.84 kB / 1.07 GB, free: 9.246 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.000114/0.3772, allocations: 99.34 kB / 1.07 GB, free: 9.148 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0006877/0.3779, allocations: 430.3 kB / 1.071 GB, free: 8.727 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.3779, allocations: 3.938 kB / 1.071 GB, free: 8.723 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.814e-06/0.3779, allocations: 4 kB / 1.071 GB, free: 8.719 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.863e-06/0.3779, allocations: 0 / 1.071 GB, free: 8.719 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.0008849/0.3788, allocations: 0.5529 MB / 1.071 GB, free: 8.113 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.3788, allocations: 8.031 kB / 1.071 GB, free: 8.105 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001647/0.379, allocations: 99.94 kB / 1.071 GB, free: 8.008 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003164/0.3793, allocations: 306.3 kB / 1.071 GB, free: 7.672 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.065e-05/0.3794, allocations: 158.9 kB / 1.072 GB, free: 7.516 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.32e-05/0.3795, allocations: 154.9 kB / 1.072 GB, free: 7.363 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.746e-05/0.3796, allocations: 105.5 kB / 1.072 GB, free: 7.254 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.243e-05/0.3796, allocations: 75.47 kB / 1.072 GB, free: 7.18 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.003e-05/0.3797, allocations: 158.5 kB / 1.072 GB, free: 7.023 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.625e-05/0.3798, allocations: 150.6 kB / 1.072 GB, free: 6.875 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.716e-05/0.3799, allocations: 158.6 kB / 1.072 GB, free: 6.719 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000451/0.3804, allocations: 0.5289 MB / 1.073 GB, free: 6.141 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001192/0.3805, allocations: 173.1 kB / 1.073 GB, free: 5.961 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.747e-05/0.3805, allocations: 84.14 kB / 1.073 GB, free: 5.875 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 5.158e-05/0.3806, allocations: 79.28 kB / 1.073 GB, free: 5.797 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.348e-05/0.3807, allocations: 109.8 kB / 1.073 GB, free: 5.68 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=0): time 8.62e-07/0.3807, allocations: 0 / 1.073 GB, free: 5.68 MB / 0.8419 GB Notification: Performance of matching and sorting (n=0): time 0.0001836/0.3809, allocations: 53.36 kB / 1.073 GB, free: 5.621 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.179e-05/0.381, allocations: 130.6 kB / 1.073 GB, free: 5.48 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004964/0.3815, allocations: 433.1 kB / 1.074 GB, free: 5.051 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.007e-05/0.3815, allocations: 33.7 kB / 1.074 GB, free: 5.012 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001077/0.3816, allocations: 136.5 kB / 1.074 GB, free: 4.875 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.895e-06/0.3816, allocations: 0 / 1.074 GB, free: 4.875 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001148/0.3817, allocations: 89.67 kB / 1.074 GB, free: 4.781 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001788/0.3819, allocations: 338.8 kB / 1.074 GB, free: 4.441 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001359/0.3821, allocations: 92.5 kB / 1.075 GB, free: 4.352 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001878/0.3823, allocations: 173.3 kB / 1.075 GB, free: 4.16 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003607/0.3826, allocations: 305.6 kB / 1.075 GB, free: 3.84 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.3826, allocations: 0 / 1.075 GB, free: 3.84 MB / 0.8419 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0005585/0.3832, allocations: 325 kB / 1.075 GB, free: 3.516 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.3832, allocations: 4 kB / 1.075 GB, free: 3.512 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.32e-05/0.3833, allocations: 11.92 kB / 1.075 GB, free: 3.5 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.3833, allocations: 224 / 1.075 GB, free: 3.5 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.3e-06/0.3833, allocations: 11.94 kB / 1.075 GB, free: 3.488 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.295e-06/0.3833, allocations: 0 / 1.075 GB, free: 3.488 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001648/0.3835, allocations: 47.28 kB / 1.075 GB, free: 3.441 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.032e-05/0.3835, allocations: 4 kB / 1.075 GB, free: 3.438 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.0002838/0.3838, allocations: 241 kB / 1.076 GB, free: 3.191 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.105e-05/0.3839, allocations: 124.6 kB / 1.076 GB, free: 3.062 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.315e-05/0.384, allocations: 122.9 kB / 1.076 GB, free: 2.934 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.841e-05/0.384, allocations: 176.3 kB / 1.076 GB, free: 2.754 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.945e-05/0.3841, allocations: 184.2 kB / 1.076 GB, free: 2.566 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001004/0.3842, allocations: 184.3 kB / 1.076 GB, free: 2.379 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003761/0.3846, allocations: 477.1 kB / 1.077 GB, free: 1.855 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.847e-05/0.3847, allocations: 105 kB / 1.077 GB, free: 1.746 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.925e-05/0.3847, allocations: 105 kB / 1.077 GB, free: 1.637 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.518e-05/0.3848, allocations: 180.2 kB / 1.077 GB, free: 1.453 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.568e-05/0.3849, allocations: 188.2 kB / 1.077 GB, free: 1.262 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.296e-05/0.385, allocations: 180.4 kB / 1.078 GB, free: 1.078 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.087e-05/0.3851, allocations: 176.3 kB / 1.078 GB, free: 0.8984 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002024/0.3853, allocations: 335.4 kB / 1.078 GB, free: 0.5469 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001331/0.3855, allocations: 201.8 kB / 1.078 GB, free: 332 kB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001167/0.3856, allocations: 188.1 kB / 1.078 GB, free: 136 kB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001478/0.3858, allocations: 105 kB / 1.079 GB, free: 24 kB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.6186/1.004, allocations: 176.3 kB / 1.079 GB, free: 22.91 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.119e-05/1.004, allocations: 107.9 kB / 1.079 GB, free: 22.8 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004412/1.005, allocations: 277.5 kB / 1.079 GB, free: 22.72 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.61e-07/1.005, allocations: 0.5625 kB / 1.079 GB, free: 22.72 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005981/1.005, allocations: 84.8 kB / 1.079 GB, free: 22.72 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.0004263/1.006, allocations: 309.5 kB / 1.079 GB, free: 22.56 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002792/1.006, allocations: 163.5 kB / 1.08 GB, free: 22.56 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/1.006, allocations: 3.75 kB / 1.08 GB, free: 22.56 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 2.344e-06/1.006, allocations: 1.438 kB / 1.08 GB, free: 22.56 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000337/1.007, allocations: 472.3 kB / 1.08 GB, free: 22.11 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007204/1.007, allocations: 0.5139 MB / 1.081 GB, free: 21.81 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002544/1.008, allocations: 0.7731 MB / 1.081 GB, free: 21.11 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.773e-05/1.008, allocations: 9.875 kB / 1.081 GB, free: 21.11 MB / 0.8419 GB Notification: Performance of SimCode: time 3.01e-07/1.008, allocations: 0 / 1.081 GB, free: 21.11 MB / 0.8419 GB Notification: Performance of Templates: time 0.006894/1.015, allocations: 3.147 MB / 1.084 GB, free: 20.88 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.makefile (rm -f Buildings_11_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; mkfifo Buildings_11_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe >> ../files/Buildings_11_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.sim & ./Buildings_11_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches