Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001453/0.001453, allocations: 107.5 kB / 16.45 MB, free: 6.512 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001344/0.001344, allocations: 209.7 kB / 19.42 MB, free: 3.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.435/1.435, allocations: 230.6 MB / 252.8 MB, free: 8.941 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.158/3.158, allocations: 0.49 GB / 0.7916 GB, free: 33.33 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med,fileNamePrefix="Buildings_12_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med,fileNamePrefix="Buildings_12_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002014/0.002014, allocations: 71.72 kB / 1.149 GB, free: 26.12 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3594/0.3614, allocations: 176.1 MB / 1.321 GB, free: 3.211 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.003116/0.3645, allocations: 1.433 MB / 1.322 GB, free: 1.766 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.003651/0.3681, allocations: 2.682 MB / 1.325 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.489e-05/0.3682, allocations: 0 / 1.325 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001832/0.37, allocations: 0.5806 MB / 1.325 GB, free: 14.49 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 6.151e-05/0.3701, allocations: 19.91 kB / 1.325 GB, free: 14.47 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 4.037e-06/0.3701, allocations: 3.938 kB / 1.325 GB, free: 14.47 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002617/0.3703, allocations: 162.9 kB / 1.326 GB, free: 14.31 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 6.889e-05/0.3704, allocations: 24.41 kB / 1.326 GB, free: 14.28 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 9.79e-05/0.3705, allocations: 63.72 kB / 1.326 GB, free: 14.21 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001407/0.3706, allocations: 79.47 kB / 1.326 GB, free: 14.14 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.37e-05/0.3707, allocations: 4 kB / 1.326 GB, free: 14.13 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001106/0.3718, allocations: 475.2 kB / 1.326 GB, free: 13.67 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 6.329e-05/0.3718, allocations: 31.84 kB / 1.326 GB, free: 13.64 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001139/0.3719, allocations: 107.3 kB / 1.326 GB, free: 13.53 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0007461/0.3727, allocations: 442 kB / 1.327 GB, free: 13.1 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3727, allocations: 0 / 1.327 GB, free: 13.1 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.304e-06/0.3727, allocations: 0 / 1.327 GB, free: 13.1 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.536e-06/0.3727, allocations: 0 / 1.327 GB, free: 13.1 MB / 1.029 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.0008995/0.3736, allocations: 0.5565 MB / 1.327 GB, free: 12.49 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.317e-05/0.3737, allocations: 11.98 kB / 1.327 GB, free: 12.48 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.424e-05/0.3737, allocations: 114 kB / 1.327 GB, free: 12.36 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001943/0.3739, allocations: 108 kB / 1.327 GB, free: 12.25 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003034/0.3742, allocations: 306.4 kB / 1.328 GB, free: 11.91 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.406e-05/0.3743, allocations: 154.9 kB / 1.328 GB, free: 11.76 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.531e-05/0.3744, allocations: 154.9 kB / 1.328 GB, free: 11.61 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.542e-05/0.3745, allocations: 105.5 kB / 1.328 GB, free: 11.5 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.951e-05/0.3745, allocations: 79.22 kB / 1.328 GB, free: 11.42 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.501e-05/0.3746, allocations: 154.6 kB / 1.328 GB, free: 11.27 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.585e-05/0.3746, allocations: 150.6 kB / 1.329 GB, free: 11.12 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.485e-05/0.3747, allocations: 158.5 kB / 1.329 GB, free: 10.96 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004546/0.3752, allocations: 0.5328 MB / 1.329 GB, free: 10.38 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001034/0.3753, allocations: 169.1 kB / 1.329 GB, free: 10.21 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.263e-05/0.3753, allocations: 88.08 kB / 1.329 GB, free: 10.12 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 4.039e-05/0.3753, allocations: 79.28 kB / 1.33 GB, free: 10.04 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.455e-05/0.3754, allocations: 109.8 kB / 1.33 GB, free: 9.922 MB / 1.029 GB Notification: Performance of pre-optimization done (n=0): time 1.002e-06/0.3754, allocations: 0 / 1.33 GB, free: 9.922 MB / 1.029 GB Notification: Performance of matching and sorting (n=0): time 0.0001892/0.3756, allocations: 57.48 kB / 1.33 GB, free: 9.859 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.245e-05/0.3757, allocations: 130.7 kB / 1.33 GB, free: 9.719 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005057/0.3762, allocations: 433.3 kB / 1.33 GB, free: 9.285 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.981e-05/0.3762, allocations: 25.7 kB / 1.33 GB, free: 9.254 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001079/0.3763, allocations: 132.6 kB / 1.33 GB, free: 9.121 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.166e-06/0.3763, allocations: 0 / 1.33 GB, free: 9.121 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001046/0.3764, allocations: 93.66 kB / 1.33 GB, free: 9.023 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001661/0.3766, allocations: 338.8 kB / 1.331 GB, free: 8.684 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001328/0.3767, allocations: 96.5 kB / 1.331 GB, free: 8.59 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001804/0.3769, allocations: 169.2 kB / 1.331 GB, free: 8.402 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000341/0.3772, allocations: 301.6 kB / 1.331 GB, free: 8.086 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.3772, allocations: 0 / 1.331 GB, free: 8.086 MB / 1.029 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0005327/0.3778, allocations: 337.2 kB / 1.332 GB, free: 7.75 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.3778, allocations: 15.94 kB / 1.332 GB, free: 7.734 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.3778, allocations: 0 / 1.332 GB, free: 7.734 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/0.3778, allocations: 4 kB / 1.332 GB, free: 7.73 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.523e-06/0.3778, allocations: 0 / 1.332 GB, free: 7.73 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.124e-06/0.3778, allocations: 4 kB / 1.332 GB, free: 7.727 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001503/0.378, allocations: 47.5 kB / 1.332 GB, free: 7.68 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.096e-05/0.378, allocations: 4 kB / 1.332 GB, free: 7.676 MB / 1.029 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.0002389/0.3782, allocations: 247.8 kB / 1.332 GB, free: 7.426 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.1e-05/0.3783, allocations: 128.7 kB / 1.332 GB, free: 7.293 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.463e-05/0.3784, allocations: 111 kB / 1.332 GB, free: 7.18 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.794e-05/0.3784, allocations: 184.2 kB / 1.332 GB, free: 6.992 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.2e-05/0.3785, allocations: 184.3 kB / 1.333 GB, free: 6.805 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.242e-05/0.3786, allocations: 180.2 kB / 1.333 GB, free: 6.621 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003323/0.3789, allocations: 473.2 kB / 1.333 GB, free: 6.102 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-05/0.379, allocations: 105 kB / 1.333 GB, free: 5.992 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.335e-05/0.379, allocations: 104.9 kB / 1.333 GB, free: 5.883 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.485e-05/0.3791, allocations: 188.2 kB / 1.334 GB, free: 5.691 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.331e-05/0.3792, allocations: 184.2 kB / 1.334 GB, free: 5.504 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.029e-05/0.3793, allocations: 180.3 kB / 1.334 GB, free: 5.32 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.675e-05/0.3794, allocations: 188.4 kB / 1.334 GB, free: 5.129 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001866/0.3795, allocations: 327.7 kB / 1.334 GB, free: 4.785 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001257/0.3797, allocations: 205.8 kB / 1.335 GB, free: 4.559 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001077/0.3798, allocations: 184.1 kB / 1.335 GB, free: 4.371 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001422/0.3799, allocations: 112.9 kB / 1.335 GB, free: 4.254 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.848e-05/0.38, allocations: 180.3 kB / 1.335 GB, free: 4.07 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.426e-05/0.38, allocations: 105 kB / 1.335 GB, free: 3.961 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0002927/0.3803, allocations: 275.1 kB / 1.335 GB, free: 3.691 MB / 1.029 GB Notification: Performance of sort global known variables: time 8.1e-08/0.3803, allocations: 0 / 1.335 GB, free: 3.691 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0004155/0.3808, allocations: 79.94 kB / 1.335 GB, free: 3.613 MB / 1.029 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.0007546/0.3815, allocations: 0.9781 MB / 1.336 GB, free: 2.609 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002153/0.3817, allocations: 119.9 kB / 1.337 GB, free: 2.492 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3817, allocations: 0 / 1.337 GB, free: 2.492 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 1.763e-06/0.3817, allocations: 0 / 1.337 GB, free: 2.492 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004237/0.3822, allocations: 471.6 kB / 1.337 GB, free: 2.031 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003192/0.3853, allocations: 2.936 MB / 1.34 GB, free: 14.97 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004033/0.3857, allocations: 0.7704 MB / 1.341 GB, free: 14.17 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 1.705e-05/0.3858, allocations: 7.984 kB / 1.341 GB, free: 14.16 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.497e-05/0.3858, allocations: 55.42 kB / 1.341 GB, free: 14.11 MB / 1.045 GB Notification: Performance of SimCode: time 4.1e-07/0.3858, allocations: 0 / 1.341 GB, free: 14.11 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02959/0.4154, allocations: 6.48 MB / 1.347 GB, free: 7.781 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.32/8.735, allocations: 11.17 kB / 1.347 GB, free: 7.773 MB / 1.045 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; mkfifo Buildings_12_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe >> ../files/Buildings_12_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med_res.mat --tempDir=temp_Buildings_12_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med.fmu > Buildings_12_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.353299964917824]