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 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_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.001633/0.001638, 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.002091/0.00209, allocations: 196.1 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.368/1.368, allocations: 222.9 MB / 240.5 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.658/2.658, allocations: 461.8 MB / 0.7348 GB, free: 14.27 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 61.81 kB / 0.899 GB, free: 37.01 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3146/0.3159, allocations: 157.4 MB / 1.053 GB, free: 8.383 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.002872/0.3188, allocations: 1.477 MB / 1.054 GB, free: 6.891 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00334/0.3222, allocations: 2.636 MB / 1.057 GB, free: 4.246 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.936e-05/0.3223, allocations: 4 kB / 1.057 GB, free: 4.242 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001716/0.324, allocations: 0.5482 MB / 1.057 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.969e-05/0.3241, allocations: 27.91 kB / 1.057 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 3.917e-06/0.3241, allocations: 0 / 1.057 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002813/0.3244, allocations: 166.9 kB / 1.057 GB, free: 3.5 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.05e-05/0.3245, allocations: 36.38 kB / 1.058 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.333e-05/0.3246, allocations: 59.75 kB / 1.058 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001771/0.3248, allocations: 79.58 kB / 1.058 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.789e-05/0.3248, allocations: 4 kB / 1.058 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001291/0.3261, allocations: 495.2 kB / 1.058 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.148e-05/0.3262, allocations: 35.78 kB / 1.058 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001074/0.3263, allocations: 95.42 kB / 1.058 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003968/0.3267, allocations: 290.7 kB / 1.059 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.3267, allocations: 0 / 1.059 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.072e-06/0.3267, allocations: 0 / 1.059 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.081e-06/0.3267, allocations: 0 / 1.059 GB, free: 2.426 MB / 0.8106 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.0008361/0.3276, allocations: 0.5567 MB / 1.059 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.3276, allocations: 11.97 kB / 1.059 GB, free: 1.805 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001822/0.3278, allocations: 107.9 kB / 1.059 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002519/0.3281, allocations: 298.4 kB / 1.059 GB, free: 1.367 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.241e-05/0.3281, allocations: 150.9 kB / 1.06 GB, free: 1.219 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.647e-05/0.3282, allocations: 154.9 kB / 1.06 GB, free: 1.066 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.161e-05/0.3283, allocations: 105.5 kB / 1.06 GB, free: 0.957 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.838e-05/0.3283, allocations: 75.47 kB / 1.06 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.362e-05/0.3284, allocations: 158.5 kB / 1.06 GB, free: 0.7266 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.023e-05/0.3284, allocations: 154.5 kB / 1.06 GB, free: 0.5742 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.072e-05/0.3285, allocations: 150.6 kB / 1.06 GB, free: 436 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004497/0.329, allocations: 0.5444 MB / 1.061 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 9.482e-05/0.3291, allocations: 169.1 kB / 1.061 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.402e-05/0.3291, allocations: 80.14 kB / 1.061 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.296e-05/0.3292, allocations: 75.28 kB / 1.061 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.027e-05/0.3292, allocations: 117.7 kB / 1.061 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=0): time 1.452e-06/0.3292, allocations: 0 / 1.061 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of matching and sorting (n=0): time 0.0002084/0.3294, allocations: 57.36 kB / 1.061 GB, free: 15.31 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.642e-05/0.3295, allocations: 126.7 kB / 1.062 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004465/0.33, allocations: 429.2 kB / 1.062 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.564e-05/0.33, allocations: 29.7 kB / 1.062 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.62e-05/0.3301, allocations: 136.4 kB / 1.062 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.466e-06/0.3301, allocations: 0 / 1.062 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.921e-05/0.3302, allocations: 89.67 kB / 1.062 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001363/0.3303, allocations: 342.8 kB / 1.062 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001192/0.3305, allocations: 100.4 kB / 1.063 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001817/0.3306, allocations: 169.3 kB / 1.063 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003091/0.331, allocations: 305.7 kB / 1.063 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.331, allocations: 0 / 1.063 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0005619/0.3315, allocations: 328.9 kB / 1.063 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.3316, allocations: 7.938 kB / 1.063 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/0.3316, allocations: 11.92 kB / 1.063 GB, free: 13.19 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.3316, allocations: 0 / 1.063 GB, free: 13.19 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.066e-06/0.3316, allocations: 4 kB / 1.063 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.3316, allocations: 0 / 1.063 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001539/0.3318, allocations: 43.5 kB / 1.063 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.145e-05/0.3318, allocations: 11.94 kB / 1.063 GB, free: 13.13 MB / 0.8262 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.0002075/0.332, allocations: 248.9 kB / 1.064 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.967e-05/0.3321, allocations: 120.7 kB / 1.064 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.395e-05/0.3322, allocations: 126.8 kB / 1.064 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-05/0.3322, allocations: 176.3 kB / 1.064 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-05/0.3323, allocations: 184.3 kB / 1.064 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.789e-05/0.3324, allocations: 180.2 kB / 1.064 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002887/0.3327, allocations: 473.2 kB / 1.065 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.529e-05/0.3327, allocations: 112.9 kB / 1.065 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.301e-05/0.3328, allocations: 101 kB / 1.065 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.491e-05/0.3328, allocations: 180.3 kB / 1.065 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.751e-05/0.3329, allocations: 184.1 kB / 1.065 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.638e-05/0.333, allocations: 180.3 kB / 1.066 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.887e-05/0.3331, allocations: 184.2 kB / 1.066 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001548/0.3332, allocations: 315.5 kB / 1.066 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001074/0.3334, allocations: 213.9 kB / 1.066 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.558e-05/0.3335, allocations: 188.2 kB / 1.066 GB, free: 9.824 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001306/0.3336, allocations: 109 kB / 1.067 GB, free: 9.711 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.415e-05/0.3337, allocations: 176.3 kB / 1.067 GB, free: 9.531 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.157e-05/0.3337, allocations: 101 kB / 1.067 GB, free: 9.426 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002841/0.334, allocations: 283.1 kB / 1.067 GB, free: 9.152 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.91e-07/0.334, allocations: 7.938 kB / 1.067 GB, free: 9.145 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003978/0.3344, allocations: 75.98 kB / 1.067 GB, free: 9.07 MB / 0.8262 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.000419/0.3348, allocations: 294.4 kB / 1.067 GB, free: 8.773 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002341/0.3351, allocations: 159.9 kB / 1.068 GB, free: 8.617 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3351, allocations: 0 / 1.068 GB, free: 8.617 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.984e-06/0.3351, allocations: 4 kB / 1.068 GB, free: 8.613 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004572/0.3356, allocations: 0.5422 MB / 1.068 GB, free: 8.07 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007402/0.3363, allocations: 0.5606 MB / 1.069 GB, free: 7.473 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003261/0.3366, allocations: 0.7785 MB / 1.069 GB, free: 6.668 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.137e-05/0.3367, allocations: 11.44 kB / 1.069 GB, free: 6.656 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.3367, allocations: 0 / 1.069 GB, free: 6.656 MB / 0.8262 GB Notification: Performance of Templates: time 0.005065/0.3417, allocations: 3.045 MB / 1.072 GB, free: 3.613 MB / 0.8262 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/jenkins1/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