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.001447/0.001447, allocations: 108 kB / 15.61 MB, free: 152 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.001782/0.001782, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.383/1.383, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.778/2.778, allocations: 472.7 MB / 0.7452 GB, free: 4.648 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001283, allocations: 68.95 kB / 0.9121 GB, free: 33.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3577/0.359, allocations: 159.9 MB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.002551/0.3616, allocations: 1.41 MB / 1.07 GB, free: 8.988 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003245/0.3648, allocations: 2.66 MB / 1.072 GB, free: 6.32 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.424e-05/0.3649, allocations: 0 / 1.072 GB, free: 6.32 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001507/0.3664, allocations: 0.5831 MB / 1.073 GB, free: 5.734 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.621e-05/0.3665, allocations: 23.91 kB / 1.073 GB, free: 5.711 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 4.859e-06/0.3665, allocations: 0 / 1.073 GB, free: 5.711 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002394/0.3668, allocations: 158.9 kB / 1.073 GB, free: 5.555 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 6.963e-05/0.3668, allocations: 32.41 kB / 1.073 GB, free: 5.523 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 6.605e-05/0.3669, allocations: 63.67 kB / 1.073 GB, free: 5.461 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001193/0.367, allocations: 75.58 kB / 1.073 GB, free: 5.387 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.389e-05/0.367, allocations: 4 kB / 1.073 GB, free: 5.383 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001013/0.3681, allocations: 467.3 kB / 1.074 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.329e-05/0.3681, allocations: 35.83 kB / 1.074 GB, free: 4.891 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001076/0.3682, allocations: 99.36 kB / 1.074 GB, free: 4.793 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006197/0.3689, allocations: 438.3 kB / 1.074 GB, free: 4.363 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3689, allocations: 3.938 kB / 1.074 GB, free: 4.359 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.804e-06/0.3689, allocations: 0 / 1.074 GB, free: 4.359 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.131e-06/0.3689, allocations: 4 kB / 1.074 GB, free: 4.355 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.0007203/0.3696, allocations: 0.5412 MB / 1.075 GB, free: 3.762 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.37e-05/0.3697, allocations: 8.031 kB / 1.075 GB, free: 3.754 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001576/0.3698, allocations: 99.94 kB / 1.075 GB, free: 3.656 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000231/0.3701, allocations: 314.3 kB / 1.075 GB, free: 3.309 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.8e-05/0.3701, allocations: 154.9 kB / 1.075 GB, free: 3.156 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.781e-05/0.3702, allocations: 158.9 kB / 1.075 GB, free: 3 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.492e-05/0.3703, allocations: 101.5 kB / 1.075 GB, free: 2.895 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.263e-05/0.3703, allocations: 75.47 kB / 1.076 GB, free: 2.82 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.518e-05/0.3704, allocations: 162.4 kB / 1.076 GB, free: 2.66 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.465e-05/0.3704, allocations: 150.6 kB / 1.076 GB, free: 2.512 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.091e-05/0.3705, allocations: 158.5 kB / 1.076 GB, free: 2.355 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003764/0.3709, allocations: 0.5327 MB / 1.076 GB, free: 1.773 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 6.991e-05/0.3709, allocations: 165.1 kB / 1.077 GB, free: 1.602 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.093e-05/0.371, allocations: 88.14 kB / 1.077 GB, free: 1.512 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.503e-05/0.371, allocations: 75.28 kB / 1.077 GB, free: 1.438 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.925e-05/0.3711, allocations: 109.8 kB / 1.077 GB, free: 1.32 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=0): time 9.52e-07/0.3711, allocations: 0 / 1.077 GB, free: 1.32 MB / 0.8262 GB Notification: Performance of matching and sorting (n=0): time 0.0001721/0.3712, allocations: 57.3 kB / 1.077 GB, free: 1.258 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.638e-05/0.3713, allocations: 130.7 kB / 1.077 GB, free: 1.117 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004065/0.3717, allocations: 437.2 kB / 1.077 GB, free: 0.6836 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.359e-05/0.3717, allocations: 25.7 kB / 1.078 GB, free: 0.6523 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.91e-05/0.3718, allocations: 128.5 kB / 1.078 GB, free: 0.5234 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.294e-06/0.3718, allocations: 0 / 1.078 GB, free: 0.5234 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.181e-05/0.3719, allocations: 93.66 kB / 1.078 GB, free: 436 kB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001259/0.3721, allocations: 338.8 kB / 1.078 GB, free: 88 kB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001251/0.3722, allocations: 100.5 kB / 1.078 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001543/0.3724, allocations: 161.3 kB / 1.078 GB, free: 15.81 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002882/0.3726, allocations: 305.6 kB / 1.079 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3727, allocations: 0 / 1.079 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.000524/0.3732, allocations: 333 kB / 1.079 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.3732, allocations: 12.16 kB / 1.079 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.3732, allocations: 7.938 kB / 1.079 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.3732, allocations: 4 kB / 1.079 GB, free: 15.13 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.283e-06/0.3733, allocations: 0 / 1.079 GB, free: 15.13 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.155e-06/0.3733, allocations: 7.984 kB / 1.079 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001394/0.3734, allocations: 43.28 kB / 1.079 GB, free: 15.08 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.728e-06/0.3734, allocations: 4 kB / 1.079 GB, free: 15.08 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.0002186/0.3737, allocations: 242.8 kB / 1.079 GB, free: 14.83 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.484e-05/0.3737, allocations: 128.6 kB / 1.079 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.183e-05/0.3738, allocations: 126.7 kB / 1.079 GB, free: 14.57 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.932e-05/0.3739, allocations: 180.2 kB / 1.08 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.155e-05/0.3739, allocations: 180.3 kB / 1.08 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.903e-05/0.374, allocations: 176.3 kB / 1.08 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003098/0.3743, allocations: 485.1 kB / 1.08 GB, free: 13.49 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.55e-05/0.3744, allocations: 101 kB / 1.081 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.157e-05/0.3744, allocations: 104.9 kB / 1.081 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.828e-05/0.3745, allocations: 188.2 kB / 1.081 GB, free: 13.08 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.362e-05/0.3745, allocations: 184.2 kB / 1.081 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.945e-05/0.3746, allocations: 180.4 kB / 1.081 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.131e-05/0.3747, allocations: 180.3 kB / 1.081 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001438/0.3748, allocations: 335.4 kB / 1.082 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 9.803e-05/0.3749, allocations: 197.8 kB / 1.082 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.651e-05/0.375, allocations: 184.1 kB / 1.082 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001274/0.3752, allocations: 105 kB / 1.082 GB, free: 11.66 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.973e-05/0.3752, allocations: 184.2 kB / 1.082 GB, free: 11.47 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.629e-05/0.3753, allocations: 105 kB / 1.082 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002573/0.3755, allocations: 279.1 kB / 1.083 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1e-07/0.3755, allocations: 0 / 1.083 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003909/0.3759, allocations: 84 kB / 1.083 GB, free: 11.01 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.0003522/0.3763, allocations: 310.8 kB / 1.083 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002178/0.3765, allocations: 171.9 kB / 1.083 GB, free: 10.53 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3765, allocations: 0 / 1.083 GB, free: 10.53 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 1.442e-06/0.3765, allocations: 0 / 1.083 GB, free: 10.53 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004088/0.377, allocations: 467.4 kB / 1.084 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005998/0.3776, allocations: 0.499 MB / 1.084 GB, free: 9.547 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003198/0.3779, allocations: 0.7822 MB / 1.085 GB, free: 8.738 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 1.264e-05/0.3779, allocations: 4 kB / 1.085 GB, free: 8.734 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.821e-05/0.3779, allocations: 11.44 kB / 1.085 GB, free: 8.723 MB / 0.8419 GB Notification: Performance of SimCode: time 2.3e-07/0.3779, allocations: 0 / 1.085 GB, free: 8.723 MB / 0.8419 GB Notification: Performance of Templates: time 0.006297/0.3842, allocations: 3.073 MB / 1.088 GB, free: 5.66 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