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.001242/0.001242, allocations: 100 kB / 15.05 MB, free: 1.105 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.00142/0.00142, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.475/1.475, allocations: 223.2 MB / 239.9 MB, free: 5.426 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.552/2.552, allocations: 390.3 MB / 0.6653 GB, free: 2.918 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000439/0.0004391, allocations: 12 kB / 0.8145 GB, free: 14.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8828/0.8833, allocations: 142.3 MB / 0.9535 GB, free: 8.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.001624/0.885, allocations: 1.104 MB / 0.9546 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002549/0.8876, allocations: 2.256 MB / 0.9568 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.007e-05/0.8876, allocations: 0.9062 kB / 0.9568 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001206/0.8888, allocations: 0.5426 MB / 0.9573 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.854e-05/0.8889, allocations: 11.45 kB / 0.9573 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 3.076e-06/0.8889, allocations: 4 kB / 0.9573 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001915/0.8891, allocations: 135.9 kB / 0.9575 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.039e-05/0.8891, allocations: 33.3 kB / 0.9575 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.814e-05/0.8892, allocations: 45.47 kB / 0.9575 GB, free: 5 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001031/0.8893, allocations: 75.66 kB / 0.9576 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.186e-05/0.8893, allocations: 2.906 kB / 0.9576 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008568/0.8902, allocations: 449.5 kB / 0.958 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.42e-05/0.8902, allocations: 33.59 kB / 0.9581 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.094e-05/0.8903, allocations: 66.2 kB / 0.9581 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004557/0.8908, allocations: 273.3 kB / 0.9584 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.8908, allocations: 0 / 0.9584 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.024e-06/0.8908, allocations: 4.719 kB / 0.9584 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.218e-06/0.8908, allocations: 0 / 0.9584 GB, free: 4.633 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.0007439/0.8915, allocations: 0.5352 MB / 0.9589 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.993e-05/0.8916, allocations: 9.719 kB / 0.9589 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001524/0.8918, allocations: 106.2 kB / 0.959 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002196/0.892, allocations: 300 kB / 0.9593 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.666e-05/0.892, allocations: 160.5 kB / 0.9595 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4e-05/0.8921, allocations: 152.6 kB / 0.9596 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.168e-05/0.8922, allocations: 105.9 kB / 0.9597 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.819e-05/0.8922, allocations: 79.22 kB / 0.9598 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.259e-05/0.8922, allocations: 150.6 kB / 0.9599 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.627e-05/0.8922, allocations: 151.6 kB / 0.9601 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.663e-05/0.8923, allocations: 159.5 kB / 0.9602 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002809/0.8926, allocations: 0.5349 MB / 0.9608 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 5.349e-05/0.8926, allocations: 166.1 kB / 0.9609 GB, free: 2.07 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.369e-05/0.8926, allocations: 75.28 kB / 0.961 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.55e-05/0.8927, allocations: 114.9 kB / 0.9611 GB, free: 1.875 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=0): time 1.132e-06/0.8927, allocations: 0 / 0.9611 GB, free: 1.875 MB / 0.7169 GB Notification: Performance of matching and sorting (n=0): time 0.0001691/0.8929, allocations: 57.81 kB / 0.9612 GB, free: 1.824 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.267e-05/0.8929, allocations: 127.7 kB / 0.9613 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003851/0.8933, allocations: 424.8 kB / 0.9617 GB, free: 1.418 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.336e-06/0.8933, allocations: 25.7 kB / 0.9617 GB, free: 1.387 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.34e-05/0.8934, allocations: 130.1 kB / 0.9618 GB, free: 1.266 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.755e-06/0.8934, allocations: 7.938 kB / 0.9618 GB, free: 1.258 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.047e-06/0.8934, allocations: 5.375 kB / 0.9618 GB, free: 1.254 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.835e-05/0.8935, allocations: 343 kB / 0.9622 GB, free: 0.918 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001125/0.8936, allocations: 95.66 kB / 0.9623 GB, free: 0.8711 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001506/0.8937, allocations: 166.8 kB / 0.9624 GB, free: 0.7461 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001479/0.8939, allocations: 123.2 kB / 0.9625 GB, free: 0.6875 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.8939, allocations: 0 / 0.9625 GB, free: 0.6875 MB / 0.7169 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0004997/0.8944, allocations: 328.3 kB / 0.9628 GB, free: 0.5078 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.8944, allocations: 5.031 kB / 0.9629 GB, free: 0.5078 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.8944, allocations: 2.125 kB / 0.9629 GB, free: 0.5078 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.8945, allocations: 2 kB / 0.9629 GB, free: 0.5078 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.236e-06/0.8945, allocations: 5.984 kB / 0.9629 GB, free: 0.5039 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.8945, allocations: 2.719 kB / 0.9629 GB, free: 0.5039 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001587/0.8946, allocations: 44.28 kB / 0.9629 GB, free: 480 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.527e-05/0.8947, allocations: 8.203 kB / 0.9629 GB, free: 476 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001773/0.8949, allocations: 253.6 kB / 0.9632 GB, free: 244 kB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.288e-05/0.8949, allocations: 120 kB / 0.9633 GB, free: 124 kB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.608e-05/0.895, allocations: 118.5 kB / 0.9634 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.304e-05/0.895, allocations: 185.8 kB / 0.9636 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.046e-05/0.8951, allocations: 180.3 kB / 0.9637 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.067e-05/0.8952, allocations: 181.2 kB / 0.9639 GB, free: 15.44 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003225/0.8955, allocations: 481.6 kB / 0.9644 GB, free: 14.95 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-05/0.8956, allocations: 106.3 kB / 0.9645 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.38e-05/0.8956, allocations: 101 kB / 0.9646 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.106e-05/0.8957, allocations: 177.5 kB / 0.9647 GB, free: 14.55 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.85e-05/0.8958, allocations: 189.3 kB / 0.9649 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.379e-05/0.8958, allocations: 177.7 kB / 0.9651 GB, free: 14.18 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.057e-05/0.8959, allocations: 185.3 kB / 0.9653 GB, free: 13.99 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000245/0.8961, allocations: 325.3 kB / 0.9656 GB, free: 13.66 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001768/0.8963, allocations: 212.8 kB / 0.9658 GB, free: 13.43 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.29e-05/0.8964, allocations: 177.4 kB / 0.9659 GB, free: 13.25 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002081/0.8966, allocations: 114.1 kB / 0.9661 GB, free: 13.14 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001222/0.8968, allocations: 177.7 kB / 0.9662 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.275e-05/0.8968, allocations: 101 kB / 0.9663 GB, free: 12.85 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0003047/0.8971, allocations: 274 kB / 0.9666 GB, free: 12.69 MB / 0.7325 GB Notification: Performance of sort global known variables: time 4.51e-07/0.8971, allocations: 3.938 kB / 0.9666 GB, free: 12.68 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005627/0.8977, allocations: 99.12 kB / 0.9667 GB, free: 12.66 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004615/0.8982, allocations: 312.5 kB / 0.967 GB, free: 12.43 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002538/0.8984, allocations: 163.8 kB / 0.9671 GB, free: 12.34 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.8984, allocations: 1.562 kB / 0.9671 GB, free: 12.34 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 1.342e-06/0.8984, allocations: 0 / 0.9671 GB, free: 12.34 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003681/0.8988, allocations: 0.5413 MB / 0.9677 GB, free: 11.79 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007011/0.8995, allocations: 0.5212 MB / 0.9682 GB, free: 11.41 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003826/0.8999, allocations: 0.7838 MB / 0.9689 GB, free: 10.66 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 1.432e-05/0.8999, allocations: 2 kB / 0.9689 GB, free: 10.66 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.898e-05/0.9, allocations: 9.625 kB / 0.9689 GB, free: 10.65 MB / 0.7325 GB Notification: Performance of SimCode: time 1.9e-07/0.9, allocations: 0 / 0.9689 GB, free: 10.65 MB / 0.7325 GB Notification: Performance of Templates: time 0.00739/0.9074, allocations: 3.054 MB / 0.9719 GB, free: 9.062 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","../files/Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches