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.001016/0.001016, 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.001011/0.001011, allocations: 196.2 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.32/1.32, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.763/2.763, allocations: 461.9 MB / 0.7346 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 63.75 kB / 0.8992 GB, free: 37.14 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.315/0.3165, allocations: 157.4 MB / 1.053 GB, free: 8.316 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.002921/0.3195, allocations: 1.408 MB / 1.054 GB, free: 6.895 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003259/0.3227, allocations: 2.677 MB / 1.057 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.203e-05/0.3228, allocations: 0 / 1.057 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001826/0.3247, allocations: 0.5831 MB / 1.057 GB, free: 3.625 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.535e-05/0.3247, allocations: 19.91 kB / 1.057 GB, free: 3.605 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 5.23e-06/0.3248, allocations: 4 kB / 1.057 GB, free: 3.602 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002682/0.325, allocations: 155 kB / 1.058 GB, free: 3.449 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 6.931e-05/0.3251, allocations: 36.34 kB / 1.058 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.871e-05/0.3252, allocations: 55.73 kB / 1.058 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001347/0.3253, allocations: 75.59 kB / 1.058 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.659e-05/0.3254, allocations: 4 kB / 1.058 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001186/0.3266, allocations: 471.3 kB / 1.058 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.435e-05/0.3266, allocations: 39.77 kB / 1.058 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001106/0.3268, allocations: 91.44 kB / 1.058 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0007501/0.3275, allocations: 446.2 kB / 1.059 GB, free: 2.254 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3275, allocations: 0 / 1.059 GB, free: 2.254 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.863e-06/0.3275, allocations: 0 / 1.059 GB, free: 2.254 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.384e-06/0.3275, allocations: 0 / 1.059 GB, free: 2.254 MB / 0.8106 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.0007639/0.3283, allocations: 0.5451 MB / 1.059 GB, free: 1.656 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.3284, allocations: 8.625 kB / 1.059 GB, free: 1.648 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.422e-05/0.3284, allocations: 110 kB / 1.059 GB, free: 1.531 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000184/0.3286, allocations: 107.9 kB / 1.06 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002431/0.3289, allocations: 302.3 kB / 1.06 GB, free: 1.09 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.857e-05/0.3289, allocations: 150.9 kB / 1.06 GB, free: 0.9414 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.8e-05/0.329, allocations: 162.9 kB / 1.06 GB, free: 0.7812 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.353e-05/0.3291, allocations: 101.5 kB / 1.06 GB, free: 0.6758 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.896e-05/0.3291, allocations: 83.2 kB / 1.06 GB, free: 0.5938 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.855e-05/0.3292, allocations: 154.6 kB / 1.06 GB, free: 452 kB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.886e-05/0.3292, allocations: 154.5 kB / 1.061 GB, free: 296 kB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.361e-05/0.3293, allocations: 150.6 kB / 1.061 GB, free: 144 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003937/0.3297, allocations: 0.5366 MB / 1.061 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 8.161e-05/0.3298, allocations: 173.1 kB / 1.061 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.138e-05/0.3298, allocations: 80.14 kB / 1.061 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.845e-05/0.3298, allocations: 79.28 kB / 1.062 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.839e-05/0.3299, allocations: 109.8 kB / 1.062 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=0): time 1.262e-06/0.3299, allocations: 0 / 1.062 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of matching and sorting (n=0): time 0.0001858/0.3301, allocations: 57.3 kB / 1.062 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.981e-05/0.3302, allocations: 134.7 kB / 1.062 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004035/0.3306, allocations: 433.2 kB / 1.062 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.812e-05/0.3306, allocations: 29.64 kB / 1.062 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.781e-05/0.3307, allocations: 132.5 kB / 1.062 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.505e-06/0.3307, allocations: 0 / 1.062 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.606e-05/0.3308, allocations: 97.61 kB / 1.063 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000119/0.3309, allocations: 334.8 kB / 1.063 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001119/0.331, allocations: 100.5 kB / 1.063 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001491/0.3312, allocations: 165.3 kB / 1.063 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003159/0.3315, allocations: 305.6 kB / 1.063 GB, free: 13.26 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.3315, allocations: 0 / 1.063 GB, free: 13.26 MB / 0.8262 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.000502/0.332, allocations: 329.1 kB / 1.064 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.3321, allocations: 11.97 kB / 1.064 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.064e-06/0.3321, allocations: 4 kB / 1.064 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.3321, allocations: 0 / 1.064 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.472e-06/0.3321, allocations: 7.938 kB / 1.064 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.3321, allocations: 0 / 1.064 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001402/0.3323, allocations: 47.28 kB / 1.064 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.096e-05/0.3323, allocations: 8 kB / 1.064 GB, free: 12.85 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.000229/0.3325, allocations: 237.1 kB / 1.064 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.744e-05/0.3326, allocations: 136.6 kB / 1.064 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.891e-05/0.3326, allocations: 111 kB / 1.064 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.188e-05/0.3327, allocations: 176.3 kB / 1.064 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.697e-05/0.3328, allocations: 184.2 kB / 1.065 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.421e-05/0.3328, allocations: 180.2 kB / 1.065 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00029/0.3331, allocations: 485.1 kB / 1.065 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.257e-05/0.3332, allocations: 104.9 kB / 1.065 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.279e-05/0.3332, allocations: 101 kB / 1.065 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.308e-05/0.3333, allocations: 192.1 kB / 1.066 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.78e-05/0.3333, allocations: 176.3 kB / 1.066 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.141e-05/0.3334, allocations: 184.4 kB / 1.066 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.65e-05/0.3335, allocations: 184.2 kB / 1.066 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001404/0.3336, allocations: 331.4 kB / 1.066 GB, free: 9.957 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.735e-05/0.3337, allocations: 201.8 kB / 1.067 GB, free: 9.734 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.723e-05/0.3338, allocations: 184.1 kB / 1.067 GB, free: 9.547 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001296/0.334, allocations: 105 kB / 1.067 GB, free: 9.438 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.701e-05/0.334, allocations: 180.2 kB / 1.067 GB, free: 9.254 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.157e-05/0.3341, allocations: 113 kB / 1.067 GB, free: 9.137 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002639/0.3344, allocations: 275.1 kB / 1.067 GB, free: 8.871 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3344, allocations: 0 / 1.067 GB, free: 8.871 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003994/0.3348, allocations: 83.98 kB / 1.068 GB, free: 8.789 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.0006822/0.3355, allocations: 0.9558 MB / 1.068 GB, free: 7.809 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002232/0.3357, allocations: 163.9 kB / 1.069 GB, free: 7.648 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3357, allocations: 0 / 1.069 GB, free: 7.648 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 4.098e-06/0.3357, allocations: 3.984 kB / 1.069 GB, free: 7.645 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003796/0.3361, allocations: 469.6 kB / 1.069 GB, free: 7.184 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002921/0.339, allocations: 2.925 MB / 1.072 GB, free: 4.145 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003367/0.3394, allocations: 0.7822 MB / 1.073 GB, free: 3.336 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.7e-05/0.3394, allocations: 4 kB / 1.073 GB, free: 3.332 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.895e-05/0.3395, allocations: 51.41 kB / 1.073 GB, free: 3.281 MB / 0.8262 GB Notification: Performance of SimCode: time 5.91e-07/0.3395, allocations: 0 / 1.073 GB, free: 3.281 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02629/0.3658, allocations: 6.387 MB / 1.079 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.511/7.877, allocations: 15.86 kB / 1.079 GB, free: 13.01 MB / 0.8419 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