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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001589/0.001589, 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.001218/0.001218, allocations: 197 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.362/1.362, 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 11.0.1-master/package.mo): time 2.705/2.705, allocations: 469.4 MB / 0.742 GB, free: 7.77 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 66.83 kB / 0.9083 GB, free: 34.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2643/0.2656, allocations: 159.1 MB / 1.064 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low): time 0.002565/0.2682, allocations: 1.395 MB / 1.065 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002226/0.2704, allocations: 1.936 MB / 1.067 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.727e-05/0.2704, allocations: 0 / 1.067 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.00103/0.2715, allocations: 381.9 kB / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.239e-05/0.2716, allocations: 23.84 kB / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 4.008e-06/0.2716, allocations: 0 / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002842/0.2719, allocations: 127.1 kB / 1.067 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 5.137e-05/0.2719, allocations: 17.5 kB / 1.067 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 5.476e-05/0.272, allocations: 39.86 kB / 1.067 GB, free: 10.65 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001687/0.2722, allocations: 63.72 kB / 1.068 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.532e-05/0.2722, allocations: 4 kB / 1.068 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004866/0.2727, allocations: 179.9 kB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.674e-05/0.2727, allocations: 31.84 kB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.034e-05/0.2728, allocations: 71.59 kB / 1.068 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004348/0.2733, allocations: 295.1 kB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.2733, allocations: 0 / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.172e-06/0.2733, allocations: 0 / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.959e-06/0.2733, allocations: 0 / 1.068 GB, free: 10.02 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.0006947/0.274, allocations: 0.4946 MB / 1.069 GB, free: 9.477 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.297e-05/0.274, allocations: 8.031 kB / 1.069 GB, free: 9.469 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.902e-05/0.2741, allocations: 106 kB / 1.069 GB, free: 9.355 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001602/0.2743, allocations: 96.03 kB / 1.069 GB, free: 9.262 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002447/0.2746, allocations: 283.4 kB / 1.069 GB, free: 8.945 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.144e-05/0.2746, allocations: 162.9 kB / 1.069 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.27e-05/0.2747, allocations: 150.9 kB / 1.069 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.107e-05/0.2747, allocations: 104.9 kB / 1.069 GB, free: 8.527 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.029e-05/0.2748, allocations: 75.28 kB / 1.07 GB, free: 8.453 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.694e-05/0.2748, allocations: 154.5 kB / 1.07 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.304e-05/0.2749, allocations: 154.6 kB / 1.07 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.438e-05/0.2749, allocations: 154.6 kB / 1.07 GB, free: 7.996 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003969/0.2753, allocations: 0.5093 MB / 1.07 GB, free: 7.438 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 8.615e-05/0.2754, allocations: 165.1 kB / 1.071 GB, free: 7.266 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.325e-05/0.2755, allocations: 88.12 kB / 1.071 GB, free: 7.176 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.479e-05/0.2755, allocations: 87.16 kB / 1.071 GB, free: 7.09 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.746e-05/0.2755, allocations: 105.8 kB / 1.071 GB, free: 6.977 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=0): time 1.002e-06/0.2755, allocations: 0 / 1.071 GB, free: 6.977 MB / 0.8262 GB Notification: Performance of matching and sorting (n=0): time 0.000164/0.2757, allocations: 49.5 kB / 1.071 GB, free: 6.922 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001263/0.2758, allocations: 126.7 kB / 1.071 GB, free: 6.785 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002948/0.2761, allocations: 318.3 kB / 1.071 GB, free: 6.469 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.219e-05/0.2762, allocations: 29.7 kB / 1.071 GB, free: 6.434 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.45e-05/0.2762, allocations: 116.4 kB / 1.072 GB, free: 6.316 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.174e-06/0.2762, allocations: 7.938 kB / 1.072 GB, free: 6.309 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.153e-05/0.2763, allocations: 57.69 kB / 1.072 GB, free: 6.246 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.993e-05/0.2764, allocations: 338.8 kB / 1.072 GB, free: 5.906 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.437e-05/0.2765, allocations: 63.95 kB / 1.072 GB, free: 5.844 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001065/0.2766, allocations: 114 kB / 1.072 GB, free: 5.711 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002114/0.2768, allocations: 209.8 kB / 1.072 GB, free: 5.484 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.2768, allocations: 0 / 1.072 GB, free: 5.484 MB / 0.8262 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003913/0.2772, allocations: 241.1 kB / 1.072 GB, free: 5.242 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.23e-05/0.2773, allocations: 4 kB / 1.072 GB, free: 5.238 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.2773, allocations: 4 kB / 1.072 GB, free: 5.234 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.059e-05/0.2773, allocations: 0 / 1.072 GB, free: 5.234 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.152e-06/0.2773, allocations: 12.2 kB / 1.073 GB, free: 5.223 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.2773, allocations: 3.938 kB / 1.073 GB, free: 5.219 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001304/0.2774, allocations: 23.69 kB / 1.073 GB, free: 5.195 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.979e-06/0.2775, allocations: 4 kB / 1.073 GB, free: 5.191 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.0001647/0.2776, allocations: 229.5 kB / 1.073 GB, free: 4.957 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.39e-05/0.2777, allocations: 128.7 kB / 1.073 GB, free: 4.824 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.323e-05/0.2778, allocations: 113.9 kB / 1.073 GB, free: 4.707 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.311e-05/0.2778, allocations: 188.2 kB / 1.073 GB, free: 4.516 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.321e-05/0.2779, allocations: 176.3 kB / 1.073 GB, free: 4.336 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001173/0.278, allocations: 184.2 kB / 1.074 GB, free: 4.148 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002882/0.2783, allocations: 449.2 kB / 1.074 GB, free: 3.652 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.291e-05/0.2784, allocations: 108.9 kB / 1.074 GB, free: 3.539 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.245e-05/0.2784, allocations: 108.9 kB / 1.074 GB, free: 3.426 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.206e-05/0.2785, allocations: 180.3 kB / 1.074 GB, free: 3.242 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.307e-05/0.2785, allocations: 184.2 kB / 1.074 GB, free: 3.055 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.261e-05/0.2786, allocations: 176.3 kB / 1.075 GB, free: 2.875 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.272e-05/0.2787, allocations: 184.2 kB / 1.075 GB, free: 2.688 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001612/0.2788, allocations: 319.6 kB / 1.075 GB, free: 2.352 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.395e-05/0.2789, allocations: 201.8 kB / 1.075 GB, free: 2.129 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.586e-05/0.279, allocations: 176.3 kB / 1.076 GB, free: 1.949 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001187/0.2791, allocations: 104.9 kB / 1.076 GB, free: 1.84 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.075e-05/0.2792, allocations: 188.3 kB / 1.076 GB, free: 1.648 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.418e-05/0.2792, allocations: 109.3 kB / 1.076 GB, free: 1.535 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001881/0.2794, allocations: 213.9 kB / 1.076 GB, free: 1.324 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2794, allocations: 0 / 1.076 GB, free: 1.324 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003391/0.2798, allocations: 63.98 kB / 1.076 GB, free: 1.262 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.0005453/0.2803, allocations: 0.9294 MB / 1.077 GB, free: 312 kB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001662/0.2805, allocations: 103.9 kB / 1.077 GB, free: 208 kB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.2805, allocations: 448 / 1.077 GB, free: 208 kB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.663e-06/0.2805, allocations: 4 kB / 1.077 GB, free: 204 kB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003784/0.2809, allocations: 462 kB / 1.078 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002405/0.2833, allocations: 2.425 MB / 1.08 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003366/0.2837, allocations: 0.7468 MB / 1.081 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 1.677e-05/0.2837, allocations: 4 kB / 1.081 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.803e-05/0.2838, allocations: 35.42 kB / 1.081 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of SimCode: time 2.41e-07/0.2838, allocations: 0 / 1.081 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0218/0.3056, allocations: 4.805 MB / 1.085 GB, free: 7.707 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.295/7.601, allocations: 16.84 kB / 1.085 GB, free: 7.695 MB / 0.8419 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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