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: "" <> buildModelFMU(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med,fileNamePrefix="Buildings_latest_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med,fileNamePrefix="Buildings_latest_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med",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.005067/0.005067, allocations: 99.77 kB / 15.73 MB, free: 6.012 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.001392/0.001392, allocations: 193.8 kB / 16.67 MB, free: 5.93 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.28/1.28, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.495/2.495, allocations: 482.6 MB / 0.755 GB, free: 6.648 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001789/0.001789, allocations: 63.56 kB / 1.083 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2668/0.2686, allocations: 162.3 MB / 1.242 GB, free: 8.984 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.0023/0.271, allocations: 1.426 MB / 1.243 GB, free: 7.547 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002989/0.274, allocations: 2.668 MB / 1.246 GB, free: 4.871 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.534e-05/0.274, allocations: 0 / 1.246 GB, free: 4.871 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001289/0.2753, allocations: 0.5855 MB / 1.246 GB, free: 4.285 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.266e-05/0.2754, allocations: 23.84 kB / 1.246 GB, free: 4.262 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 3.617e-06/0.2754, allocations: 0 / 1.246 GB, free: 4.262 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002224/0.2756, allocations: 158.9 kB / 1.247 GB, free: 4.105 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 6.042e-05/0.2757, allocations: 32.41 kB / 1.247 GB, free: 4.074 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 7.245e-05/0.2758, allocations: 67.7 kB / 1.247 GB, free: 4.008 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001226/0.2759, allocations: 75.59 kB / 1.247 GB, free: 3.934 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.179e-05/0.2759, allocations: 0 / 1.247 GB, free: 3.934 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000958/0.2769, allocations: 467.3 kB / 1.247 GB, free: 3.477 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 4.894e-05/0.2769, allocations: 43.77 kB / 1.247 GB, free: 3.434 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001007/0.277, allocations: 95.42 kB / 1.247 GB, free: 3.34 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.00062/0.2777, allocations: 434 kB / 1.248 GB, free: 2.914 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.2777, allocations: 4 kB / 1.248 GB, free: 2.91 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.052e-06/0.2777, allocations: 0 / 1.248 GB, free: 2.91 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.639e-06/0.2777, allocations: 0 / 1.248 GB, free: 2.91 MB / 0.9669 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.0007085/0.2784, allocations: 0.5603 MB / 1.248 GB, free: 2.297 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.409e-05/0.2784, allocations: 12.03 kB / 1.248 GB, free: 2.285 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.811e-05/0.2785, allocations: 110 kB / 1.248 GB, free: 2.168 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001602/0.2787, allocations: 104 kB / 1.248 GB, free: 2.066 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000229/0.2789, allocations: 298.4 kB / 1.249 GB, free: 1.738 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.609e-05/0.279, allocations: 166.9 kB / 1.249 GB, free: 1.574 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.669e-05/0.279, allocations: 158.9 kB / 1.249 GB, free: 1.418 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.876e-05/0.2791, allocations: 101.5 kB / 1.249 GB, free: 1.312 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.62e-05/0.2791, allocations: 79.22 kB / 1.249 GB, free: 1.234 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.625e-05/0.2792, allocations: 154.6 kB / 1.249 GB, free: 1.082 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-05/0.2793, allocations: 154.5 kB / 1.25 GB, free: 0.9297 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.883e-05/0.2793, allocations: 150.6 kB / 1.25 GB, free: 0.7812 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003812/0.2797, allocations: 0.5406 MB / 1.25 GB, free: 196 kB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 8.981e-05/0.2798, allocations: 169.1 kB / 1.25 GB, free: 16 kB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.597e-05/0.2799, allocations: 80.14 kB / 1.25 GB, free: 15.93 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.998e-05/0.2799, allocations: 75.28 kB / 1.251 GB, free: 15.86 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.334e-05/0.28, allocations: 113.8 kB / 1.251 GB, free: 15.74 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=0): time 8.62e-07/0.28, allocations: 0 / 1.251 GB, free: 15.74 MB / 0.9825 GB Notification: Performance of matching and sorting (n=0): time 0.0001668/0.2801, allocations: 61.42 kB / 1.251 GB, free: 15.67 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.462e-05/0.2802, allocations: 126.7 kB / 1.251 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004278/0.2807, allocations: 433.3 kB / 1.251 GB, free: 15.1 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.395e-05/0.2807, allocations: 25.7 kB / 1.251 GB, free: 15.07 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.268e-05/0.2808, allocations: 132.6 kB / 1.251 GB, free: 14.94 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.974e-06/0.2808, allocations: 4 kB / 1.251 GB, free: 14.93 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.143e-05/0.2809, allocations: 93.66 kB / 1.251 GB, free: 14.84 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001367/0.281, allocations: 334.8 kB / 1.252 GB, free: 14.5 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001188/0.2811, allocations: 100.5 kB / 1.252 GB, free: 14.4 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001587/0.2813, allocations: 161.3 kB / 1.252 GB, free: 14.22 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003163/0.2816, allocations: 309.6 kB / 1.252 GB, free: 13.9 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.2816, allocations: 4 kB / 1.252 GB, free: 13.89 MB / 0.9825 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0004777/0.2821, allocations: 325.1 kB / 1.253 GB, free: 13.57 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.2821, allocations: 17.91 kB / 1.253 GB, free: 13.55 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.2821, allocations: 3.938 kB / 1.253 GB, free: 13.55 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.2822, allocations: 4 kB / 1.253 GB, free: 13.55 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.152e-06/0.2822, allocations: 3.938 kB / 1.253 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.311e-06/0.2822, allocations: 4.219 kB / 1.253 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001353/0.2823, allocations: 47.52 kB / 1.253 GB, free: 13.49 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.28e-05/0.2823, allocations: 11.98 kB / 1.253 GB, free: 13.48 MB / 0.9825 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.0001926/0.2825, allocations: 237.6 kB / 1.253 GB, free: 13.24 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.317e-05/0.2826, allocations: 136.7 kB / 1.253 GB, free: 13.1 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.382e-05/0.2827, allocations: 111 kB / 1.253 GB, free: 12.98 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.854e-05/0.2828, allocations: 188.2 kB / 1.253 GB, free: 12.79 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-05/0.2828, allocations: 180.2 kB / 1.254 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.878e-05/0.2829, allocations: 176.3 kB / 1.254 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003015/0.2832, allocations: 477.1 kB / 1.254 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.246e-05/0.2833, allocations: 105 kB / 1.254 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.308e-05/0.2833, allocations: 108.9 kB / 1.254 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.272e-05/0.2834, allocations: 192.2 kB / 1.255 GB, free: 11.49 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.094e-05/0.2835, allocations: 180.2 kB / 1.255 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.479e-05/0.2835, allocations: 180.4 kB / 1.255 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.182e-05/0.2836, allocations: 180.3 kB / 1.255 GB, free: 10.94 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001584/0.2838, allocations: 331.6 kB / 1.255 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001053/0.2839, allocations: 201.9 kB / 1.256 GB, free: 10.37 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.356e-05/0.284, allocations: 184.1 kB / 1.256 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001331/0.2841, allocations: 105 kB / 1.256 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.497e-05/0.2842, allocations: 184.2 kB / 1.256 GB, free: 9.883 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.026e-05/0.2843, allocations: 105 kB / 1.256 GB, free: 9.773 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0002661/0.2845, allocations: 279.1 kB / 1.256 GB, free: 9.5 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2845, allocations: 0 / 1.256 GB, free: 9.5 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000341/0.2849, allocations: 83.94 kB / 1.257 GB, free: 9.418 MB / 0.9825 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.000631/0.2855, allocations: 0.9644 MB / 1.257 GB, free: 8.426 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002004/0.2857, allocations: 164 kB / 1.258 GB, free: 8.266 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.2857, allocations: 0 / 1.258 GB, free: 8.266 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.202e-06/0.2858, allocations: 4 kB / 1.258 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003918/0.2861, allocations: 461.1 kB / 1.258 GB, free: 7.805 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002773/0.2889, allocations: 2.948 MB / 1.261 GB, free: 4.73 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003673/0.2893, allocations: 0.7745 MB / 1.262 GB, free: 3.93 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 9.949e-06/0.2893, allocations: 0 / 1.262 GB, free: 3.93 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.36e-05/0.2894, allocations: 59.34 kB / 1.262 GB, free: 3.871 MB / 0.9825 GB Notification: Performance of SimCode: time 2.2e-07/0.2894, allocations: 0 / 1.262 GB, free: 3.871 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.337/1.626, allocations: 6.444 MB / 1.268 GB, free: 13.58 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.04/11.66, allocations: 10.17 kB / 1.268 GB, free: 13.57 MB / 0.9981 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med.fmu > 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