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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.00147/0.001469, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001671/0.001671, allocations: 196.9 kB / 16.79 MB, free: 6.809 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.536/1.536, allocations: 222.9 MB / 240.5 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.418/2.418, allocations: 390.2 MB / 0.6649 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001891/0.001892, allocations: 67.89 kB / 0.8125 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7774/0.7794, allocations: 140.3 MB / 0.9496 GB, free: 9.215 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.002287/0.7817, allocations: 1.488 MB / 0.951 GB, free: 8.039 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002276/0.784, allocations: 2.64 MB / 0.9536 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.187e-05/0.784, allocations: 0 / 0.9536 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001211/0.7852, allocations: 0.5496 MB / 0.9541 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.021e-05/0.7853, allocations: 16.12 kB / 0.9542 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 3.136e-06/0.7853, allocations: 1.219 kB / 0.9542 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002206/0.7855, allocations: 177.9 kB / 0.9543 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.9e-05/0.7856, allocations: 33.19 kB / 0.9544 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.044e-05/0.7857, allocations: 58.27 kB / 0.9544 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001086/0.7858, allocations: 80.86 kB / 0.9545 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.375e-05/0.7858, allocations: 2.812 kB / 0.9545 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009769/0.7868, allocations: 496 kB / 0.955 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.497e-05/0.7868, allocations: 35.28 kB / 0.955 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.471e-05/0.7869, allocations: 102.9 kB / 0.9551 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002794/0.7872, allocations: 289.5 kB / 0.9554 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.7872, allocations: 0 / 0.9554 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.72e-07/0.7872, allocations: 0 / 0.9554 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.149e-06/0.7872, allocations: 0 / 0.9554 GB, free: 4.941 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.0005941/0.7878, allocations: 0.5456 MB / 0.9559 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.374e-05/0.7879, allocations: 9.219 kB / 0.9559 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001306/0.788, allocations: 104.1 kB / 0.956 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001585/0.7882, allocations: 313.5 kB / 0.9563 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.215e-05/0.7882, allocations: 152.1 kB / 0.9565 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.736e-05/0.7882, allocations: 153.2 kB / 0.9566 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 3.75e-05/0.7883, allocations: 102.6 kB / 0.9567 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.7883, allocations: 75.47 kB / 0.9568 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.075e-05/0.7883, allocations: 154.5 kB / 0.9569 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.006e-05/0.7884, allocations: 163.6 kB / 0.9571 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.341e-05/0.7884, allocations: 155.6 kB / 0.9572 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002476/0.7886, allocations: 0.5269 MB / 0.9577 GB, free: 2.547 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4.064e-05/0.7887, allocations: 174.2 kB / 0.9579 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.444e-05/0.7887, allocations: 84.14 kB / 0.958 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.198e-05/0.7887, allocations: 75.28 kB / 0.9581 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.044e-05/0.7888, allocations: 114.9 kB / 0.9582 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=0): time 8.62e-07/0.7888, allocations: 1.094 kB / 0.9582 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of matching and sorting (n=0): time 0.0001582/0.7889, allocations: 56.7 kB / 0.9582 GB, free: 2.035 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.853e-05/0.789, allocations: 128.7 kB / 0.9584 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000376/0.7893, allocations: 435 kB / 0.9588 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.975e-06/0.7894, allocations: 25.7 kB / 0.9588 GB, free: 1.59 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.284e-05/0.7894, allocations: 130.4 kB / 0.9589 GB, free: 1.469 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.055e-06/0.7894, allocations: 0 / 0.9589 GB, free: 1.469 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.767e-05/0.7895, allocations: 91.72 kB / 0.959 GB, free: 1.414 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.692e-05/0.7896, allocations: 340.5 kB / 0.9593 GB, free: 1.082 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000101/0.7897, allocations: 102.7 kB / 0.9594 GB, free: 1.027 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001322/0.7898, allocations: 166.6 kB / 0.9596 GB, free: 0.9023 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002584/0.7901, allocations: 305.3 kB / 0.9599 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.7901, allocations: 0.9062 kB / 0.9599 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0004337/0.7905, allocations: 336.3 kB / 0.9602 GB, free: 0.5312 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/0.7906, allocations: 5.719 kB / 0.9602 GB, free: 0.5312 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.7906, allocations: 9.312 kB / 0.9602 GB, free: 0.5234 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.7906, allocations: 2.75 kB / 0.9602 GB, free: 0.5234 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.495e-06/0.7906, allocations: 5.375 kB / 0.9602 GB, free: 0.5195 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.042e-06/0.7906, allocations: 6.734 kB / 0.9602 GB, free: 0.5156 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001283/0.7907, allocations: 41 kB / 0.9603 GB, free: 496 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.002e-05/0.7908, allocations: 3.969 kB / 0.9603 GB, free: 496 kB / 0.7169 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.0001685/0.7909, allocations: 243.5 kB / 0.9605 GB, free: 272 kB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.918e-05/0.791, allocations: 127.4 kB / 0.9606 GB, free: 144 kB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.943e-05/0.791, allocations: 122 kB / 0.9607 GB, free: 12 kB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.856e-05/0.7911, allocations: 185.3 kB / 0.9609 GB, free: 15.82 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.428e-05/0.7912, allocations: 177.3 kB / 0.9611 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.449e-05/0.7912, allocations: 181.2 kB / 0.9613 GB, free: 15.46 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003023/0.7915, allocations: 476.6 kB / 0.9617 GB, free: 14.97 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.188e-05/0.7916, allocations: 105.8 kB / 0.9618 GB, free: 14.86 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.934e-05/0.7916, allocations: 102 kB / 0.9619 GB, free: 14.76 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.246e-05/0.7917, allocations: 181.4 kB / 0.9621 GB, free: 14.57 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.853e-05/0.7918, allocations: 185.7 kB / 0.9623 GB, free: 14.39 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.538e-05/0.7918, allocations: 181.6 kB / 0.9624 GB, free: 14.2 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.2e-05/0.7919, allocations: 184.4 kB / 0.9626 GB, free: 14.02 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001413/0.7921, allocations: 326.1 kB / 0.9629 GB, free: 13.68 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001058/0.7922, allocations: 204.5 kB / 0.9631 GB, free: 13.46 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.982e-05/0.7923, allocations: 189.3 kB / 0.9633 GB, free: 13.27 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001424/0.7924, allocations: 110.3 kB / 0.9634 GB, free: 13.16 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.994e-05/0.7925, allocations: 181.4 kB / 0.9636 GB, free: 12.98 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.395e-05/0.7925, allocations: 101.8 kB / 0.9637 GB, free: 12.87 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002851/0.7928, allocations: 280.5 kB / 0.9639 GB, free: 12.7 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7928, allocations: 3.938 kB / 0.9639 GB, free: 12.7 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003724/0.7932, allocations: 73.84 kB / 0.964 GB, free: 12.7 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.0003638/0.7936, allocations: 299.8 kB / 0.9643 GB, free: 12.46 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002213/0.7938, allocations: 167.5 kB / 0.9645 GB, free: 12.37 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.7938, allocations: 1.125 kB / 0.9645 GB, free: 12.37 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 1.453e-06/0.7938, allocations: 0 / 0.9645 GB, free: 12.37 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004454/0.7943, allocations: 0.5298 MB / 0.965 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006765/0.795, allocations: 0.558 MB / 0.9655 GB, free: 11.41 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003388/0.7953, allocations: 0.7775 MB / 0.9663 GB, free: 10.66 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.88e-05/0.7953, allocations: 9.5 kB / 0.9663 GB, free: 10.66 MB / 0.7325 GB Notification: Performance of SimCode: time 3.11e-07/0.7954, allocations: 3.938 kB / 0.9663 GB, free: 10.65 MB / 0.7325 GB Notification: Performance of Templates: time 0.004611/0.8, allocations: 3.044 MB / 0.9693 GB, free: 9.113 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/jenkins1/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