Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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_9_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med,fileNamePrefix="Buildings_9_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.001244/0.001244, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001215/0.001215, allocations: 192.7 kB / 16.13 MB, free: 6.691 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 / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.183/2.183, allocations: 390.2 MB / 0.6643 GB, free: 0.5938 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001347, allocations: 63.89 kB / 0.812 GB, free: 14.8 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5454/0.5468, allocations: 140.4 MB / 0.949 GB, free: 9.148 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.002257/0.5491, allocations: 1.473 MB / 0.9505 GB, free: 7.988 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002379/0.5515, allocations: 2.637 MB / 0.9531 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.191e-05/0.5515, allocations: 0 / 0.9531 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001412/0.5529, allocations: 0.5464 MB / 0.9536 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.614e-05/0.553, allocations: 21.09 kB / 0.9536 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 3.317e-06/0.553, allocations: 3.938 kB / 0.9536 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001896/0.5532, allocations: 178.3 kB / 0.9538 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.725e-05/0.5533, allocations: 37.97 kB / 0.9538 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.286e-05/0.5533, allocations: 54.3 kB / 0.9539 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001138/0.5535, allocations: 83.98 kB / 0.954 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.355e-05/0.5535, allocations: 2.281 kB / 0.954 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001048/0.5545, allocations: 491.7 kB / 0.9544 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.764e-05/0.5546, allocations: 32.31 kB / 0.9545 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.556e-05/0.5547, allocations: 102.9 kB / 0.9546 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000545/0.5552, allocations: 392.4 kB / 0.9549 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.5552, allocations: 0 / 0.9549 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of FrontEnd: time 6.11e-07/0.5553, allocations: 0 / 0.9549 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.36e-06/0.5553, allocations: 1.344 kB / 0.9549 GB, free: 4.848 MB / 0.7169 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.0006243/0.5559, allocations: 0.5452 MB / 0.9555 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.5559, allocations: 9.344 kB / 0.9555 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.383e-05/0.556, allocations: 106 kB / 0.9556 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001476/0.5561, allocations: 108.3 kB / 0.9557 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001532/0.5563, allocations: 300.7 kB / 0.956 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.173e-05/0.5563, allocations: 156.2 kB / 0.9561 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.402e-05/0.5563, allocations: 157.8 kB / 0.9563 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 3.293e-05/0.5564, allocations: 113.5 kB / 0.9564 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.5564, allocations: 80.88 kB / 0.9564 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.702e-05/0.5564, allocations: 150.6 kB / 0.9566 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.726e-05/0.5564, allocations: 150.6 kB / 0.9567 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.122e-05/0.5565, allocations: 156.3 kB / 0.9569 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002508/0.5567, allocations: 0.5347 MB / 0.9574 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.891e-05/0.5568, allocations: 169.1 kB / 0.9576 GB, free: 2.156 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.714e-05/0.5568, allocations: 81.92 kB / 0.9576 GB, free: 2.074 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.019e-05/0.5568, allocations: 75.28 kB / 0.9577 GB, free: 2 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.733e-05/0.5568, allocations: 109.8 kB / 0.9578 GB, free: 1.883 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=0): time 9.01e-07/0.5568, allocations: 1.781 kB / 0.9578 GB, free: 1.883 MB / 0.7169 GB Notification: Performance of matching and sorting (n=0): time 0.0001613/0.557, allocations: 56.02 kB / 0.9579 GB, free: 1.832 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.61e-05/0.557, allocations: 132.5 kB / 0.958 GB, free: 1.691 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003795/0.5574, allocations: 438 kB / 0.9584 GB, free: 1.41 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.305e-06/0.5574, allocations: 26.98 kB / 0.9584 GB, free: 1.379 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.764e-05/0.5575, allocations: 130.6 kB / 0.9586 GB, free: 1.258 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.194e-06/0.5575, allocations: 0 / 0.9586 GB, free: 1.258 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.757e-05/0.5576, allocations: 91.17 kB / 0.9587 GB, free: 1.203 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.383e-05/0.5576, allocations: 339.3 kB / 0.959 GB, free: 0.8711 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001083/0.5578, allocations: 99.69 kB / 0.9591 GB, free: 0.8203 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001287/0.5579, allocations: 164.4 kB / 0.9592 GB, free: 0.6992 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002607/0.5582, allocations: 316.8 kB / 0.9595 GB, free: 0.5 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.5582, allocations: 0 / 0.9595 GB, free: 0.5 MB / 0.7169 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0004532/0.5586, allocations: 331.9 kB / 0.9599 GB, free: 328 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.5586, allocations: 10.81 kB / 0.9599 GB, free: 324 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.5587, allocations: 1.375 kB / 0.9599 GB, free: 324 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.5587, allocations: 2.75 kB / 0.9599 GB, free: 324 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.104e-06/0.5587, allocations: 1.375 kB / 0.9599 GB, free: 324 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.253e-06/0.5587, allocations: 6.688 kB / 0.9599 GB, free: 320 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001498/0.5589, allocations: 43.84 kB / 0.9599 GB, free: 284 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.063e-05/0.5589, allocations: 8.125 kB / 0.9599 GB, free: 280 kB / 0.7169 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.0001574/0.559, allocations: 239.3 kB / 0.9602 GB, free: 60 kB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.286e-05/0.5591, allocations: 132.8 kB / 0.9603 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.684e-05/0.5592, allocations: 121.4 kB / 0.9604 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.347e-05/0.5593, allocations: 181.6 kB / 0.9606 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.418e-05/0.5593, allocations: 184.2 kB / 0.9607 GB, free: 15.43 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.364e-05/0.5594, allocations: 177.6 kB / 0.9609 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002785/0.5597, allocations: 478 kB / 0.9614 GB, free: 14.76 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.44e-05/0.5597, allocations: 104.9 kB / 0.9615 GB, free: 14.65 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.571e-05/0.5598, allocations: 102.8 kB / 0.9616 GB, free: 14.55 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.948e-05/0.5598, allocations: 184.1 kB / 0.9617 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.581e-05/0.5599, allocations: 186.4 kB / 0.9619 GB, free: 14.17 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.919e-05/0.5599, allocations: 176.3 kB / 0.9621 GB, free: 13.99 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.551e-05/0.56, allocations: 193.5 kB / 0.9623 GB, free: 13.8 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001395/0.5601, allocations: 325.4 kB / 0.9626 GB, free: 13.46 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001036/0.5603, allocations: 208.5 kB / 0.9628 GB, free: 13.24 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.834e-05/0.5604, allocations: 189.5 kB / 0.963 GB, free: 13.05 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001295/0.5605, allocations: 102 kB / 0.9631 GB, free: 12.95 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.234e-05/0.5606, allocations: 178.1 kB / 0.9632 GB, free: 12.77 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.893e-05/0.5606, allocations: 104.9 kB / 0.9633 GB, free: 12.66 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002792/0.5609, allocations: 280.7 kB / 0.9636 GB, free: 12.49 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.7e-07/0.5609, allocations: 4.875 kB / 0.9636 GB, free: 12.48 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003793/0.5613, allocations: 77.11 kB / 0.9637 GB, free: 12.48 MB / 0.7325 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.0006029/0.5619, allocations: 0.9407 MB / 0.9646 GB, free: 11.59 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002202/0.5621, allocations: 164.1 kB / 0.9648 GB, free: 11.5 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.5621, allocations: 5.188 kB / 0.9648 GB, free: 11.5 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 1.513e-06/0.5621, allocations: 0 / 0.9648 GB, free: 11.5 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004201/0.5626, allocations: 0.5311 MB / 0.9653 GB, free: 10.96 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003191/0.5658, allocations: 2.95 MB / 0.9682 GB, free: 8.773 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003278/0.5661, allocations: 0.7741 MB / 0.9689 GB, free: 8.031 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 1.886e-05/0.5661, allocations: 6.516 kB / 0.9689 GB, free: 8.027 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.945e-05/0.5662, allocations: 49.92 kB / 0.969 GB, free: 7.98 MB / 0.7325 GB Notification: Performance of SimCode: time 3.8e-07/0.5662, allocations: 0 / 0.969 GB, free: 7.98 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3152/0.8815, allocations: 6.005 MB / 0.9748 GB, free: 5.082 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002483/0.8817, allocations: 224 kB / 0.975 GB, free: 4.832 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.141/3.023, allocations: 0 / 0.975 GB, free: 4.832 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; mkfifo Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe >> ../files/Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med.fmu > Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches