Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low.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: "" <> buildModelFMU(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low,fileNamePrefix="Buildings_latest_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_low",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low,fileNamePrefix="Buildings_latest_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_low",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007029/0.007029, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.002138/0.002138, allocations: 202.1 kB / 16.68 MB, free: 5.969 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.272/1.272, allocations: 222.9 MB / 240.4 MB, free: 4.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.563/2.563, allocations: 482.6 MB / 0.755 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001672/0.001672, allocations: 67.89 kB / 1.083 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2573/0.259, allocations: 162.3 MB / 1.242 GB, free: 9.883 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low): time 0.002075/0.2611, allocations: 1.399 MB / 1.243 GB, free: 8.469 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.002077/0.2632, allocations: 1.927 MB / 1.245 GB, free: 6.535 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.506e-05/0.2632, allocations: 0 / 1.245 GB, free: 6.535 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0008351/0.2641, allocations: 389.3 kB / 1.245 GB, free: 6.156 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 4.029e-05/0.2641, allocations: 19.86 kB / 1.245 GB, free: 6.137 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 3.136e-06/0.2642, allocations: 0 / 1.245 GB, free: 6.137 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.000187/0.2643, allocations: 131.1 kB / 1.246 GB, free: 6.008 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.528e-05/0.2644, allocations: 21.5 kB / 1.246 GB, free: 5.984 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.925e-05/0.2645, allocations: 39.84 kB / 1.246 GB, free: 5.945 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 9.776e-05/0.2646, allocations: 59.72 kB / 1.246 GB, free: 5.887 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.336e-05/0.2646, allocations: 4 kB / 1.246 GB, free: 5.883 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004282/0.265, allocations: 187.9 kB / 1.246 GB, free: 5.699 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 3.863e-05/0.2651, allocations: 27.84 kB / 1.246 GB, free: 5.672 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 8.263e-05/0.2651, allocations: 75.61 kB / 1.246 GB, free: 5.598 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004028/0.2655, allocations: 282.7 kB / 1.246 GB, free: 5.32 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.2656, allocations: 4 kB / 1.246 GB, free: 5.316 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.112e-06/0.2656, allocations: 4 kB / 1.246 GB, free: 5.312 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.144e-06/0.2656, allocations: 0 / 1.246 GB, free: 5.312 MB / 0.9981 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.0006071/0.2662, allocations: 0.4905 MB / 1.247 GB, free: 4.773 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.145e-05/0.2662, allocations: 11.97 kB / 1.247 GB, free: 4.762 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.197e-05/0.2663, allocations: 106 kB / 1.247 GB, free: 4.648 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001457/0.2664, allocations: 104.1 kB / 1.247 GB, free: 4.547 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002116/0.2666, allocations: 291.4 kB / 1.247 GB, free: 4.223 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.652e-05/0.2667, allocations: 150.9 kB / 1.247 GB, free: 4.074 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.096e-05/0.2668, allocations: 158.9 kB / 1.248 GB, free: 3.918 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.886e-05/0.2668, allocations: 108.9 kB / 1.248 GB, free: 3.805 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.439e-05/0.2669, allocations: 75.28 kB / 1.248 GB, free: 3.73 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.445e-05/0.2669, allocations: 154.6 kB / 1.248 GB, free: 3.578 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.111e-05/0.267, allocations: 158.5 kB / 1.248 GB, free: 3.422 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.491e-05/0.2671, allocations: 154.6 kB / 1.248 GB, free: 3.27 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003197/0.2674, allocations: 0.5017 MB / 1.249 GB, free: 2.719 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 7.954e-05/0.2675, allocations: 173.1 kB / 1.249 GB, free: 2.539 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.31e-05/0.2675, allocations: 84.14 kB / 1.249 GB, free: 2.453 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.944e-05/0.2675, allocations: 79.22 kB / 1.249 GB, free: 2.375 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.628e-05/0.2676, allocations: 105.8 kB / 1.249 GB, free: 2.262 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=0): time 8.31e-07/0.2676, allocations: 0 / 1.249 GB, free: 2.262 MB / 0.9981 GB Notification: Performance of matching and sorting (n=0): time 0.0001502/0.2677, allocations: 49.56 kB / 1.249 GB, free: 2.207 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.953e-05/0.2678, allocations: 130.7 kB / 1.249 GB, free: 2.066 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000289/0.2681, allocations: 322.4 kB / 1.25 GB, free: 1.746 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.408e-05/0.2681, allocations: 25.7 kB / 1.25 GB, free: 1.715 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 7.796e-05/0.2682, allocations: 124.4 kB / 1.25 GB, free: 1.586 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.613e-06/0.2682, allocations: 0 / 1.25 GB, free: 1.586 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.353e-05/0.2683, allocations: 61.73 kB / 1.25 GB, free: 1.52 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001242/0.2684, allocations: 334.8 kB / 1.25 GB, free: 1.184 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.596e-05/0.2685, allocations: 59.95 kB / 1.25 GB, free: 1.125 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001157/0.2686, allocations: 122 kB / 1.25 GB, free: 0.9844 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002129/0.2688, allocations: 209.8 kB / 1.25 GB, free: 0.7578 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.2688, allocations: 4 kB / 1.25 GB, free: 0.7539 MB / 0.9981 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003715/0.2692, allocations: 237.3 kB / 1.251 GB, free: 0.5156 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.036e-05/0.2692, allocations: 4.219 kB / 1.251 GB, free: 0.5117 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.2692, allocations: 8 kB / 1.251 GB, free: 0.5039 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.868e-06/0.2693, allocations: 0 / 1.251 GB, free: 0.5039 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.755e-06/0.2693, allocations: 4 kB / 1.251 GB, free: 0.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.048e-06/0.2693, allocations: 0 / 1.251 GB, free: 0.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001097/0.2694, allocations: 39.66 kB / 1.251 GB, free: 472 kB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.618e-06/0.2694, allocations: 11.88 kB / 1.251 GB, free: 460 kB / 0.9981 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.000153/0.2696, allocations: 220.6 kB / 1.251 GB, free: 232 kB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.313e-05/0.2696, allocations: 128.8 kB / 1.251 GB, free: 96 kB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4701/0.7397, allocations: 113.8 kB / 1.251 GB, free: 15.7 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.721e-05/0.7398, allocations: 177.8 kB / 1.251 GB, free: 15.52 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.935e-05/0.7398, allocations: 179 kB / 1.252 GB, free: 15.34 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.892e-05/0.7398, allocations: 180.8 kB / 1.252 GB, free: 15.16 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001926/0.74, allocations: 450.9 kB / 1.252 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.156e-05/0.74, allocations: 110.5 kB / 1.252 GB, free: 14.61 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.051e-05/0.7401, allocations: 103.5 kB / 1.252 GB, free: 14.5 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.79e-05/0.7401, allocations: 181 kB / 1.252 GB, free: 14.32 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.861e-05/0.7401, allocations: 179.5 kB / 1.253 GB, free: 14.14 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.712e-05/0.7401, allocations: 181.5 kB / 1.253 GB, free: 13.96 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.742e-05/0.7402, allocations: 179.5 kB / 1.253 GB, free: 13.79 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.733e-05/0.7402, allocations: 321.3 kB / 1.253 GB, free: 13.48 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.623e-05/0.7403, allocations: 217.1 kB / 1.254 GB, free: 13.28 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.765e-05/0.7403, allocations: 178.5 kB / 1.254 GB, free: 13.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.5e-05/0.7404, allocations: 110.1 kB / 1.254 GB, free: 12.99 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.092e-05/0.7404, allocations: 179.2 kB / 1.254 GB, free: 12.81 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.089e-05/0.7405, allocations: 104.8 kB / 1.254 GB, free: 12.71 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001794/0.7406, allocations: 216 kB / 1.254 GB, free: 12.63 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.9e-07/0.7407, allocations: 1.031 kB / 1.254 GB, free: 12.63 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003314/0.741, allocations: 63.56 kB / 1.254 GB, free: 12.63 MB / 0.9981 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.0003504/0.7413, allocations: 0.9255 MB / 1.255 GB, free: 11.82 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001571/0.7415, allocations: 106 kB / 1.255 GB, free: 11.82 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.7415, allocations: 0 / 1.255 GB, free: 11.82 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 2.114e-06/0.7415, allocations: 0.875 kB / 1.255 GB, free: 11.82 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002395/0.7418, allocations: 461.8 kB / 1.256 GB, free: 11.37 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001745/0.7435, allocations: 2.438 MB / 1.258 GB, free: 9.715 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001267/0.7437, allocations: 0.7444 MB / 1.259 GB, free: 9.012 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 1.137e-05/0.7437, allocations: 3.141 kB / 1.259 GB, free: 9.012 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.696e-05/0.7437, allocations: 33.88 kB / 1.259 GB, free: 8.984 MB / 0.9981 GB Notification: Performance of SimCode: time 2.91e-07/0.7437, allocations: 0.6562 kB / 1.259 GB, free: 8.984 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.077/2.821, allocations: 4.859 MB / 1.264 GB, free: 8.371 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.35/14.17, allocations: 8.328 kB / 1.264 GB, free: 8.367 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low.pipe ; mkfifo Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low.pipe >> ../files/Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_low_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_low.fmu > Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_Transmission_Functions_Validation_SelectCable_low.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches