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 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_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.006081/0.006081, allocations: 100.5 kB / 15.73 MB, free: 5.977 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.001446/0.001446, allocations: 197.2 kB / 16.67 MB, free: 5.914 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.397/1.397, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.726/2.726, allocations: 461.9 MB / 0.7348 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 64.12 kB / 1.054 GB, free: 7.656 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3083/0.3096, allocations: 157.4 MB / 1.207 GB, free: 10.15 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.002633/0.3123, allocations: 1.416 MB / 1.209 GB, free: 8.719 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.003124/0.3155, allocations: 2.667 MB / 1.211 GB, free: 6.043 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.165e-05/0.3155, allocations: 3.938 kB / 1.211 GB, free: 6.039 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001715/0.3173, allocations: 0.5853 MB / 1.212 GB, free: 5.453 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.612e-05/0.3174, allocations: 23.84 kB / 1.212 GB, free: 5.43 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 4.648e-06/0.3174, allocations: 0 / 1.212 GB, free: 5.43 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002381/0.3176, allocations: 158.9 kB / 1.212 GB, free: 5.273 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 7.234e-05/0.3177, allocations: 36.39 kB / 1.212 GB, free: 5.234 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.606e-05/0.3178, allocations: 55.73 kB / 1.212 GB, free: 5.18 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001417/0.3179, allocations: 83.52 kB / 1.212 GB, free: 5.098 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.424e-05/0.3179, allocations: 4 kB / 1.212 GB, free: 5.094 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00115/0.3191, allocations: 467.3 kB / 1.213 GB, free: 4.637 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 6.046e-05/0.3192, allocations: 39.77 kB / 1.213 GB, free: 4.598 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001128/0.3193, allocations: 91.44 kB / 1.213 GB, free: 4.508 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000712/0.32, allocations: 446.1 kB / 1.213 GB, free: 4.07 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.32, allocations: 0 / 1.213 GB, free: 4.07 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.563e-06/0.32, allocations: 0 / 1.213 GB, free: 4.07 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.327e-05/0.3201, allocations: 0 / 1.213 GB, free: 4.07 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.0007784/0.3208, allocations: 0.5568 MB / 1.214 GB, free: 3.461 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/0.3209, allocations: 8.625 kB / 1.214 GB, free: 3.453 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.837e-05/0.3209, allocations: 106 kB / 1.214 GB, free: 3.34 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001763/0.3211, allocations: 107.8 kB / 1.214 GB, free: 3.234 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002302/0.3214, allocations: 302.3 kB / 1.214 GB, free: 2.906 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.978e-05/0.3214, allocations: 150.9 kB / 1.214 GB, free: 2.758 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.739e-05/0.3215, allocations: 158.9 kB / 1.214 GB, free: 2.602 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.249e-05/0.3215, allocations: 109.5 kB / 1.215 GB, free: 2.488 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.108e-05/0.3216, allocations: 83.2 kB / 1.215 GB, free: 2.406 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.456e-05/0.3216, allocations: 154.5 kB / 1.215 GB, free: 2.254 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.566e-05/0.3217, allocations: 150.6 kB / 1.215 GB, free: 2.105 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.839e-05/0.3217, allocations: 150.6 kB / 1.215 GB, free: 1.957 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003473/0.3221, allocations: 0.5367 MB / 1.216 GB, free: 1.371 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 7.629e-05/0.3222, allocations: 169.1 kB / 1.216 GB, free: 1.195 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.715e-05/0.3222, allocations: 80.14 kB / 1.216 GB, free: 1.113 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.598e-05/0.3222, allocations: 75.28 kB / 1.216 GB, free: 1.039 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.255e-05/0.3223, allocations: 113.8 kB / 1.216 GB, free: 0.918 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=0): time 1.042e-06/0.3223, allocations: 0 / 1.216 GB, free: 0.918 MB / 0.9669 GB Notification: Performance of matching and sorting (n=0): time 0.0001779/0.3225, allocations: 57.27 kB / 1.216 GB, free: 0.8555 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.848e-05/0.3225, allocations: 130.7 kB / 1.216 GB, free: 0.7148 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003945/0.3229, allocations: 429.2 kB / 1.217 GB, free: 292 kB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.825e-05/0.323, allocations: 33.7 kB / 1.217 GB, free: 252 kB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.393e-05/0.3231, allocations: 132.5 kB / 1.217 GB, free: 116 kB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.829e-06/0.3231, allocations: 4 kB / 1.217 GB, free: 112 kB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.648e-05/0.3232, allocations: 93.61 kB / 1.217 GB, free: 12 kB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001285/0.3233, allocations: 342.8 kB / 1.217 GB, free: 15.67 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001196/0.3234, allocations: 96.5 kB / 1.217 GB, free: 15.57 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001481/0.3236, allocations: 165.3 kB / 1.217 GB, free: 15.39 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002917/0.3239, allocations: 305.6 kB / 1.218 GB, free: 15.07 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.3239, allocations: 0 / 1.218 GB, free: 15.07 MB / 0.9825 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0004999/0.3244, allocations: 332.9 kB / 1.218 GB, free: 14.74 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.3244, allocations: 7.938 kB / 1.218 GB, free: 14.73 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.138e-06/0.3245, allocations: 4 kB / 1.218 GB, free: 14.73 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.3245, allocations: 0 / 1.218 GB, free: 14.73 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.388e-06/0.3245, allocations: 8 kB / 1.218 GB, free: 14.72 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.1e-05/0.3245, allocations: 4.156 kB / 1.218 GB, free: 14.71 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001377/0.3246, allocations: 47.38 kB / 1.218 GB, free: 14.67 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.172e-05/0.3247, allocations: 4 kB / 1.218 GB, free: 14.66 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.0002398/0.3249, allocations: 237.1 kB / 1.218 GB, free: 14.42 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.786e-05/0.325, allocations: 132.5 kB / 1.218 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.832e-05/0.3251, allocations: 118.9 kB / 1.219 GB, free: 14.16 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.558e-05/0.3251, allocations: 184.3 kB / 1.219 GB, free: 13.97 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.815e-05/0.3252, allocations: 180.2 kB / 1.219 GB, free: 13.79 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.793e-05/0.3253, allocations: 184.2 kB / 1.219 GB, free: 13.6 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002687/0.3255, allocations: 473.2 kB / 1.22 GB, free: 13.08 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.084e-05/0.3256, allocations: 105.1 kB / 1.22 GB, free: 12.97 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.096e-05/0.3256, allocations: 108.9 kB / 1.22 GB, free: 12.86 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.051e-05/0.3257, allocations: 188.1 kB / 1.22 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.895e-05/0.3257, allocations: 180.3 kB / 1.22 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.761e-05/0.3258, allocations: 184.2 kB / 1.22 GB, free: 12.29 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.457e-05/0.3259, allocations: 180.2 kB / 1.22 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000142/0.326, allocations: 327.5 kB / 1.221 GB, free: 11.77 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000106/0.3261, allocations: 197.8 kB / 1.221 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.105e-05/0.3262, allocations: 184.2 kB / 1.221 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000122/0.3264, allocations: 104.9 kB / 1.221 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.768e-05/0.3264, allocations: 176.3 kB / 1.221 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.073e-05/0.3265, allocations: 108.9 kB / 1.222 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0002478/0.3267, allocations: 287.1 kB / 1.222 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3267, allocations: 0 / 1.222 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003924/0.3271, allocations: 83.98 kB / 1.222 GB, free: 10.6 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.0005933/0.3277, allocations: 0.9527 MB / 1.223 GB, free: 9.621 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002133/0.3279, allocations: 171.9 kB / 1.223 GB, free: 9.453 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.328, allocations: 0 / 1.223 GB, free: 9.453 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.222e-06/0.328, allocations: 0 / 1.223 GB, free: 9.453 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003772/0.3283, allocations: 465.1 kB / 1.223 GB, free: 8.992 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002722/0.3311, allocations: 2.937 MB / 1.226 GB, free: 5.938 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000301/0.3314, allocations: 0.7798 MB / 1.227 GB, free: 5.133 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 1.475e-05/0.3314, allocations: 0 / 1.227 GB, free: 5.133 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.278e-05/0.3315, allocations: 59.41 kB / 1.227 GB, free: 5.074 MB / 0.9825 GB Notification: Performance of SimCode: time 3.1e-07/0.3315, allocations: 3.938 kB / 1.227 GB, free: 5.07 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02371/0.3552, allocations: 6.512 MB / 1.233 GB, free: 14.7 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.488/7.843, allocations: 13.58 kB / 1.233 GB, free: 14.69 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=50 --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