Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low.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_low,fileNamePrefix="Buildings_latest_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_low",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low,fileNamePrefix="Buildings_latest_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_low",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.0015/0.0015, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.003215/0.003215, allocations: 191 kB / 16.25 MB, free: 6.637 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.768/1.768, allocations: 222.9 MB / 239.9 MB, free: 4.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.631/2.631, allocations: 461.9 MB / 0.7343 GB, free: 14.9 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001541, allocations: 66.98 kB / 0.8987 GB, free: 37.12 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2401/0.2417, allocations: 157.4 MB / 1.052 GB, free: 8.625 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low): time 0.002079/0.2438, allocations: 1.466 MB / 1.054 GB, free: 7.141 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001835/0.2457, allocations: 1.912 MB / 1.056 GB, free: 5.223 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.084e-05/0.2457, allocations: 0 / 1.056 GB, free: 5.223 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0007988/0.2465, allocations: 374.1 kB / 1.056 GB, free: 4.855 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.834e-05/0.2465, allocations: 15.91 kB / 1.056 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 3.377e-06/0.2466, allocations: 0 / 1.056 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001838/0.2467, allocations: 131.1 kB / 1.056 GB, free: 4.711 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.494e-05/0.2468, allocations: 21.5 kB / 1.056 GB, free: 4.688 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.34e-05/0.2468, allocations: 39.86 kB / 1.056 GB, free: 4.648 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.277e-05/0.2469, allocations: 63.7 kB / 1.056 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.126e-05/0.247, allocations: 0 / 1.056 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003393/0.2473, allocations: 179.9 kB / 1.056 GB, free: 4.41 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.443e-05/0.2474, allocations: 43.81 kB / 1.057 GB, free: 4.367 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.291e-05/0.2474, allocations: 67.62 kB / 1.057 GB, free: 4.301 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003479/0.2478, allocations: 287.1 kB / 1.057 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2478, allocations: 4 kB / 1.057 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.093e-06/0.2478, allocations: 0 / 1.057 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.708e-06/0.2478, allocations: 0 / 1.057 GB, free: 4.016 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.0005674/0.2484, allocations: 494.5 kB / 1.057 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.248e-05/0.2484, allocations: 8.625 kB / 1.057 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.617e-05/0.2485, allocations: 110 kB / 1.057 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001437/0.2486, allocations: 99.94 kB / 1.058 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001744/0.2488, allocations: 287.4 kB / 1.058 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.606e-05/0.2488, allocations: 154.9 kB / 1.058 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.318e-05/0.2489, allocations: 154.9 kB / 1.058 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.207e-05/0.2489, allocations: 104.9 kB / 1.058 GB, free: 2.531 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.043e-05/0.249, allocations: 79.28 kB / 1.058 GB, free: 2.453 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.999e-05/0.249, allocations: 150.6 kB / 1.058 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.808e-05/0.249, allocations: 150.6 kB / 1.059 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.289e-05/0.2491, allocations: 158.5 kB / 1.059 GB, free: 2 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002762/0.2494, allocations: 0.5055 MB / 1.059 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 6.205e-05/0.2494, allocations: 173.1 kB / 1.059 GB, free: 1.266 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.387e-05/0.2495, allocations: 80.14 kB / 1.059 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.563e-05/0.2495, allocations: 79.22 kB / 1.06 GB, free: 1.105 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.4e-05/0.2495, allocations: 113.8 kB / 1.06 GB, free: 0.9844 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=0): time 9.01e-07/0.2495, allocations: 4 kB / 1.06 GB, free: 0.9805 MB / 0.8106 GB Notification: Performance of matching and sorting (n=0): time 0.0001507/0.2497, allocations: 49.42 kB / 1.06 GB, free: 0.9258 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.329e-05/0.2498, allocations: 126.7 kB / 1.06 GB, free: 0.7891 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002553/0.25, allocations: 318.4 kB / 1.06 GB, free: 480 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.519e-05/0.25, allocations: 25.7 kB / 1.06 GB, free: 448 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.378e-05/0.2501, allocations: 120.3 kB / 1.06 GB, free: 324 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.953e-06/0.2501, allocations: 0 / 1.06 GB, free: 324 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.456e-05/0.2502, allocations: 65.67 kB / 1.06 GB, free: 252 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001018/0.2503, allocations: 334.8 kB / 1.061 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.124e-05/0.2503, allocations: 67.89 kB / 1.061 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.714e-05/0.2504, allocations: 114 kB / 1.061 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001883/0.2506, allocations: 213.9 kB / 1.061 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.2506, allocations: 4 kB / 1.061 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003497/0.251, allocations: 241.1 kB / 1.061 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.053e-05/0.251, allocations: 5.094 kB / 1.061 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.251, allocations: 4 kB / 1.061 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.327e-06/0.251, allocations: 0 / 1.061 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.436e-06/0.2511, allocations: 4 kB / 1.061 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.359e-06/0.2511, allocations: 3.938 kB / 1.061 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001023/0.2512, allocations: 27.59 kB / 1.061 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.548e-06/0.2512, allocations: 8 kB / 1.061 GB, free: 15.18 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.0001432/0.2513, allocations: 235.4 kB / 1.062 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.282e-05/0.2514, allocations: 124.6 kB / 1.062 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.841e-05/0.2514, allocations: 113.8 kB / 1.062 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.638e-05/0.2515, allocations: 180.2 kB / 1.062 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.635e-05/0.2515, allocations: 176.3 kB / 1.062 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.708e-05/0.2516, allocations: 192.2 kB / 1.062 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002118/0.2518, allocations: 449.2 kB / 1.063 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-05/0.2518, allocations: 104.9 kB / 1.063 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.637e-05/0.2519, allocations: 104.9 kB / 1.063 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.697e-05/0.2519, allocations: 180.2 kB / 1.063 GB, free: 13.24 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.277e-05/0.252, allocations: 188.2 kB / 1.063 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.349e-05/0.252, allocations: 176.3 kB / 1.063 GB, free: 12.87 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.124e-05/0.2521, allocations: 176.3 kB / 1.064 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001087/0.2522, allocations: 319.6 kB / 1.064 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.474e-05/0.2523, allocations: 201.8 kB / 1.064 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.002e-05/0.2524, allocations: 184.3 kB / 1.064 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001072/0.2525, allocations: 109 kB / 1.064 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.213e-05/0.2525, allocations: 184.2 kB / 1.065 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.51e-05/0.2526, allocations: 101 kB / 1.065 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001654/0.2527, allocations: 217.9 kB / 1.065 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2527, allocations: 0 / 1.065 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002852/0.253, allocations: 60 kB / 1.065 GB, free: 11.27 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.000453/0.2535, allocations: 0.9297 MB / 1.066 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001371/0.2536, allocations: 99.89 kB / 1.066 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.2536, allocations: 0 / 1.066 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.625e-06/0.2536, allocations: 4 kB / 1.066 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003284/0.254, allocations: 460.7 kB / 1.066 GB, free: 9.754 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001947/0.2559, allocations: 2.456 MB / 1.069 GB, free: 7.176 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002336/0.2562, allocations: 0.743 MB / 1.069 GB, free: 6.406 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.189e-05/0.2562, allocations: 7.984 kB / 1.07 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.166e-05/0.2562, allocations: 35.42 kB / 1.07 GB, free: 6.363 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.2562, allocations: 4 kB / 1.07 GB, free: 6.359 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.78/4.037, allocations: 4.726 MB / 1.074 GB, free: 1.809 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003061/4.037, allocations: 230.5 kB / 1.074 GB, free: 1.555 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.086/7.123, allocations: 1.875 kB / 1.074 GB, free: 1.555 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low.pipe ; mkfifo Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low.pipe >> ../files/Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_low_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_low.fmu > Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_Transmission_Functions_Validation_SelectCable_low.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches